You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2008/11/03 18:41:01 UTC
svn commit: r710111 - /httpd/httpd/trunk/server/mpm/simple/simple_io.c
Author: pquerna
Date: Mon Nov 3 09:41:00 2008
New Revision: 710111
URL: http://svn.apache.org/viewvc?rev=710111&view=rev
Log:
Make sure we clear out previous things we were listening for.
Modified:
httpd/httpd/trunk/server/mpm/simple/simple_io.c
Modified: httpd/httpd/trunk/server/mpm/simple/simple_io.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/simple/simple_io.c?rev=710111&r1=710110&r2=710111&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/simple/simple_io.c (original)
+++ httpd/httpd/trunk/server/mpm/simple/simple_io.c Mon Nov 3 09:41:00 2008
@@ -64,6 +64,15 @@
cs = c->cs;
while (!c->aborted) {
+
+ cs->pfd.reqevents = APR_POLLOUT | APR_POLLHUP | APR_POLLERR | APR_POLLIN;
+ rv = apr_pollcb_remove(sc->pollcb, &cs->pfd);
+ if (rv) {
+ ap_log_error(APLOG_MARK, APLOG_ERR, rv, ap_server_conf,
+ "process_socket: apr_pollset_remove failure");
+ /*AP_DEBUG_ASSERT(rv == APR_SUCCESS);*/
+ }
+
if (cs->state == CONN_STATE_READ_REQUEST_LINE) {
if (!c->aborted) {
ap_run_process_connection(c);