diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-16 07:34:45 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-02-16 07:36:27 +0100 |
commit | c0ac86b069fac3460fd2e4c7997245c5a1281536 (patch) | |
tree | 341204fb7921475642ff82b329ebe7b60093b432 /src/lib/connection_add.c | |
parent | 285adcb02aaf613b173bab0d2cde6cbaf504b800 (diff) | |
download | libmicrohttpd-c0ac86b069fac3460fd2e4c7997245c5a1281536.tar.gz libmicrohttpd-c0ac86b069fac3460fd2e4c7997245c5a1281536.zip |
add call_handlers
Diffstat (limited to 'src/lib/connection_add.c')
-rw-r--r-- | src/lib/connection_add.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/lib/connection_add.c b/src/lib/connection_add.c index 178ad929..c4150b1e 100644 --- a/src/lib/connection_add.c +++ b/src/lib/connection_add.c | |||
@@ -23,6 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | #include "internal.h" | 24 | #include "internal.h" |
25 | #include "connection_add.h" | 25 | #include "connection_add.h" |
26 | #include "connection_call_handlers.h" | ||
26 | #include "connection_close.h" | 27 | #include "connection_close.h" |
27 | #include "connection_finish_forward.h" | 28 | #include "connection_finish_forward.h" |
28 | #include "connection_update_last_activity.h" | 29 | #include "connection_update_last_activity.h" |
@@ -317,13 +318,13 @@ thread_main_handle_connection (void *data) | |||
317 | MHD_itc_clear_ (daemon->itc); | 318 | MHD_itc_clear_ (daemon->itc); |
318 | #endif | 319 | #endif |
319 | if (MHD_NO == | 320 | if (MHD_NO == |
320 | call_handlers (con, | 321 | MHD_connection_call_handlers_ (con, |
321 | FD_ISSET (con->socket_fd, | 322 | FD_ISSET (con->socket_fd, |
322 | &rs), | 323 | &rs), |
323 | FD_ISSET (con->socket_fd, | 324 | FD_ISSET (con->socket_fd, |
324 | &ws), | 325 | &ws), |
325 | FD_ISSET (con->socket_fd, | 326 | FD_ISSET (con->socket_fd, |
326 | &es)) ) | 327 | &es)) ) |
327 | goto exit; | 328 | goto exit; |
328 | } | 329 | } |
329 | #ifdef HAVE_POLL | 330 | #ifdef HAVE_POLL |
@@ -385,10 +386,10 @@ thread_main_handle_connection (void *data) | |||
385 | MHD_itc_clear_ (daemon->itc); | 386 | MHD_itc_clear_ (daemon->itc); |
386 | #endif | 387 | #endif |
387 | if (MHD_NO == | 388 | if (MHD_NO == |
388 | call_handlers (con, | 389 | MHD_connection_call_handlers_ (con, |
389 | 0 != (p[0].revents & POLLIN), | 390 | 0 != (p[0].revents & POLLIN), |
390 | 0 != (p[0].revents & POLLOUT), | 391 | 0 != (p[0].revents & POLLOUT), |
391 | 0 != (p[0].revents & (POLLERR | MHD_POLL_REVENTS_ERR_DISC)))) | 392 | 0 != (p[0].revents & (POLLERR | MHD_POLL_REVENTS_ERR_DISC)))) |
392 | goto exit; | 393 | goto exit; |
393 | } | 394 | } |
394 | #endif | 395 | #endif |