blob: faeff79449ac084b8d9ac2a66ec91ec4c929b963 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <util/network/sock.h>
#include <library/cpp/actors/core/log.h>
#include <library/cpp/actors/protos/services_common.pb.h>
namespace NHttp {
struct THttpConfig {
static constexpr NActors::NLog::EComponent HttpLog = NActorsServices::EServiceCommon::HTTP;
static constexpr size_t BUFFER_SIZE = 64 * 1024;
static constexpr size_t BUFFER_MIN_STEP = 10 * 1024;
static constexpr int LISTEN_QUEUE = 10;
static constexpr TDuration SOCKET_TIMEOUT = TDuration::MilliSeconds(60000);
static constexpr TDuration CONNECTION_TIMEOUT = TDuration::MilliSeconds(60000);
using SocketType = TInet6StreamSocket;
using SocketAddressType = TSockAddrInet6;
};
}
|