altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1524368.patch

008793
--- a/modules/proxy/mod_proxy_fcgi.c	2013/09/18 11:17:28	1524367
008793
+++ b/modules/proxy/mod_proxy_fcgi.c	2013/09/18 11:18:02	1524368
008793
@@ -429,15 +429,13 @@
008793
     ob = apr_brigade_create(r->pool, c->bucket_alloc);
008793
 
008793
     while (! done) {
008793
-        apr_interval_time_t timeout = conn->worker->s->timeout;
008793
+        apr_interval_time_t timeout;
008793
         apr_size_t len;
008793
         int n;
008793
 
008793
         /* We need SOME kind of timeout here, or virtually anything will
008793
          * cause timeout errors. */
008793
-        if (! conn->worker->s->timeout_set) {
008793
-            timeout = apr_time_from_sec(30);
008793
-        }
008793
+        apr_socket_timeout_get(conn->sock, &timeout);
008793
 
008793
         rv = apr_poll(&pfd, 1, &n, timeout);
008793
         if (rv != APR_SUCCESS) {