aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/http/http_config.h
blob: 1a2f8646a33a110b139e3f09735c209da2d684f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include <util/network/sock.h>
#include <library/cpp/actors/core/log.h>
#include <library/cpp/actors/protos/services_common.pb.h>

class TInet64StreamSocket;

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 = TInet64StreamSocket;
    using SocketAddressType = std::shared_ptr<ISockAddr>;
};

}