aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/http/http_config.h
blob: 3402770eb41081ca02543983242dd045b2a74606 (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;
};

}