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