diff options
author | Roberto De Ioris <roberto@unbit.it> | 2012-10-21 11:31:47 +0200 |
---|---|---|
committer | Roberto De Ioris <roberto@unbit.it> | 2012-10-21 11:31:47 +0200 |
commit | 4014bc53bd0dbc1f328a4889c79d1d55de191ffb (patch) | |
tree | 407d47a99ab6703d4971e7a09bc80a442295c484 /core/event.c | |
parent | b8f42a8d0b74401795c0f79acab1a3088e0f69bc (diff) | |
download | uwsgi-4014bc53bd0dbc1f328a4889c79d1d55de191ffb.tar.gz |
fixed handling of 'remaining' post data in http router
Diffstat (limited to 'core/event.c')
-rw-r--r-- | core/event.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/event.c b/core/event.c index 58291d4c..e5816110 100644 --- a/core/event.c +++ b/core/event.c @@ -108,7 +108,7 @@ int event_queue_interesting_fd_has_error(void *events, int id) { int event_queue_interesting_fd_is_read(void *events, int id) { port_event_t *pe = (port_event_t *) events; - if (pe[id].portev_events == POLLIN) { + if (pe[id].portev_events = POLLIN) { return 1; } return 0; @@ -427,7 +427,7 @@ int event_queue_interesting_fd_has_error(void *events, int id) { int event_queue_interesting_fd_is_read(void *events, int id) { struct epoll_event *ee = (struct epoll_event *) events; - if (ee[id].events == EPOLLIN) { + if (ee[id].events & EPOLLIN) { return 1; } return 0; @@ -435,7 +435,7 @@ int event_queue_interesting_fd_is_read(void *events, int id) { int event_queue_interesting_fd_is_write(void *events, int id) { struct epoll_event *ee = (struct epoll_event *) events; - if (ee[id].events == EPOLLOUT) { + if (ee[id].events & EPOLLOUT) { return 1; } return 0; |