Close all connections on exit

This commit is contained in:
2023-01-04 00:40:09 +01:00
parent d8fd552b40
commit c67edd4195
8 changed files with 54 additions and 22 deletions

View File

@ -11,8 +11,6 @@
#include "worker/func.h"
#include <signal.h>
#define NUM_SOCKETS 2
#define LISTEN_BACKLOG 16
#define REQ_PER_CONNECTION 200
@ -23,8 +21,6 @@
#define CNX_HANDLER_WORKERS 8
#define REQ_HANDLER_WORKERS 16
extern volatile sig_atomic_t server_alive;
void server_free_client(client_ctx_t *ctx);
#endif //SESIMOS_SERVER_H