Use signed in a bunch of places
This commit is contained in:
@@ -17,7 +17,7 @@ struct ServerConfig {
|
||||
/// Unix socket path (if specified, takes precedence over TCP)
|
||||
std::string unix_socket_path;
|
||||
/// Maximum size in bytes for incoming HTTP requests (default: 1MB)
|
||||
size_t max_request_size_bytes = 1024 * 1024;
|
||||
int64_t max_request_size_bytes = 1024 * 1024;
|
||||
/// Number of I/O threads for handling connections and network events
|
||||
int io_threads = 1;
|
||||
/// Number of epoll instances to reduce epoll_ctl contention (default:
|
||||
@@ -28,7 +28,7 @@ struct ServerConfig {
|
||||
/// Maximum number of concurrent connections (0 = unlimited)
|
||||
int max_connections = 50000;
|
||||
/// Buffer size for reading from socket connections (default: 16KB)
|
||||
size_t read_buffer_size = 16 * 1024;
|
||||
int read_buffer_size = 16 * 1024;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -36,11 +36,11 @@ struct ServerConfig {
|
||||
*/
|
||||
struct CommitConfig {
|
||||
/// Minimum required length for request_id to ensure sufficient entropy
|
||||
size_t min_request_id_length = 20;
|
||||
int min_request_id_length = 20;
|
||||
/// How long to retain request IDs for duplicate detection
|
||||
std::chrono::hours request_id_retention_hours{24};
|
||||
/// Minimum number of commit versions to retain request IDs for
|
||||
size_t request_id_retention_versions = 100000000;
|
||||
int64_t request_id_retention_versions = 100000000;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -48,7 +48,7 @@ struct CommitConfig {
|
||||
*/
|
||||
struct SubscriptionConfig {
|
||||
/// Maximum buffer size for unconsumed subscription data before backpressure
|
||||
size_t max_buffer_size_bytes = 10 * 1024 * 1024;
|
||||
int64_t max_buffer_size_bytes = 10 * 1024 * 1024;
|
||||
/// Interval between keepalive comments in subscription streams
|
||||
std::chrono::seconds keepalive_interval{30};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user