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