feat: started designing http framework

This commit is contained in:
Jef Roosens 2023-05-27 15:38:06 +02:00
parent 90d83bc5d4
commit 8250a5b8b0
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
9 changed files with 96 additions and 50 deletions

View file

@ -172,7 +172,7 @@ void event_loop_run(event_loop *el, int port) {
// poll for active fds
// the timeout argument doesn't matter here
int rv = poll(poll_args, (nfds_t)poll_args_count, 0);
int rv = poll(poll_args, (nfds_t)poll_args_count, -1);
if (rv < 0) {
critical(1, "Poll failed, errno: %i", errno);

View file

@ -109,7 +109,6 @@ void event_loop_conn_io(event_loop *el, event_loop_conn *conn) {
case event_loop_conn_state_res:
event_loop_conn_io_res(conn);
break;
case event_loop_conn_state_end:
break;
case event_loop_conn_state_end:;
}
}