]> granicus.if.org Git - apache/commitdiff
Use apr_socket_timeout_get instead of hard-coded 30 seconds timeout.
authorJan Kaluža <jkaluza@apache.org>
Wed, 18 Sep 2013 11:18:02 +0000 (11:18 +0000)
committerJan Kaluža <jkaluza@apache.org>
Wed, 18 Sep 2013 11:18:02 +0000 (11:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1524368 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_fcgi.c

index b27d78c638bb7807377d7db2daf9b5e6f424c3fd..75d7ef53a19eaeaa9173cdd5d5892863f323960a 100644 (file)
@@ -429,15 +429,13 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf,
     ob = apr_brigade_create(r->pool, c->bucket_alloc);
 
     while (! done) {
-        apr_interval_time_t timeout = conn->worker->s->timeout;
+        apr_interval_time_t timeout;
         apr_size_t len;
         int n;
 
         /* We need SOME kind of timeout here, or virtually anything will
          * cause timeout errors. */
-        if (! conn->worker->s->timeout_set) {
-            timeout = apr_time_from_sec(30);
-        }
+        apr_socket_timeout_get(conn->sock, &timeout);
 
         rv = apr_poll(&pfd, 1, &n, timeout);
         if (rv != APR_SUCCESS) {