Unify accept and network threads into io threads
This commit is contained in:
@@ -18,14 +18,12 @@ struct ServerConfig {
|
||||
std::string unix_socket_path;
|
||||
/// Maximum size in bytes for incoming HTTP requests (default: 1MB)
|
||||
size_t max_request_size_bytes = 1024 * 1024;
|
||||
/// Number of accept threads for handling incoming connections
|
||||
int accept_threads = 1;
|
||||
/// Number of network I/O threads for epoll processing
|
||||
int network_threads = 1;
|
||||
/// Number of I/O threads for handling connections and network events
|
||||
int io_threads = 1;
|
||||
/// Event batch size for epoll processing
|
||||
int event_batch_size = 32;
|
||||
/// Maximum number of concurrent connections (0 = unlimited)
|
||||
int max_connections = 1000;
|
||||
int max_connections = 50000;
|
||||
/// Buffer size for reading from socket connections (default: 16KB)
|
||||
size_t read_buffer_size = 16 * 1024;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user