httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r710111 - /httpd/httpd/trunk/server/mpm/simple/simple_io.c
Date Mon, 03 Nov 2008 17:41:01 GMT
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);



Mime
View raw message