http_config.h 734 B

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