feat: started designing http framework
This commit is contained in:
parent
90d83bc5d4
commit
8250a5b8b0
9 changed files with 96 additions and 50 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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:;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue