Multi processing -> multi threading
This commit is contained in:
@ -14,17 +14,16 @@
|
||||
#include <signal.h>
|
||||
|
||||
#define NUM_SOCKETS 2
|
||||
#define MAX_CHILDREN 1024
|
||||
#define MAX_CHILDREN 64
|
||||
#define LISTEN_BACKLOG 16
|
||||
#define REQ_PER_CONNECTION 200
|
||||
#define CLIENT_TIMEOUT 3600
|
||||
#define SERVER_TIMEOUT_INIT 4
|
||||
#define SERVER_TIMEOUT 3600
|
||||
|
||||
extern int sockets[NUM_SOCKETS];
|
||||
extern pid_t children[MAX_CHILDREN];
|
||||
#define CNX_HANDLER_WORKERS 8
|
||||
#define REQ_HANDLER_WORKERS 16
|
||||
|
||||
extern volatile sig_atomic_t server_keep_alive;
|
||||
extern struct timeval client_timeout;
|
||||
extern volatile sig_atomic_t alive;
|
||||
|
||||
#endif //SESIMOS_SERVER_H
|
||||
|
Reference in New Issue
Block a user