View | Details | Raw Unified | Return to bug 45445
Collapse All | Expand All

(-)proxy_util.c (+2 lines)
Lines 2364-2369 Link Here
2364
            backend_addr = backend_addr->next;
2364
            backend_addr = backend_addr->next;
2365
            continue;
2365
            continue;
2366
        }
2366
        }
2367
        if (worker->req_timeout_set)
2368
             apr_socket_timeout_set(newsock, worker->req_timeout);
2367
2369
2368
        conn->sock   = newsock;
2370
        conn->sock   = newsock;
2369
        connected    = 1;
2371
        connected    = 1;
(-)mod_proxy.c (+10 lines)
Lines 281-286 Link Here
281
            return "lbset must be between 0 and 99";
281
            return "lbset must be between 0 and 99";
282
        worker->lbset = ival;
282
        worker->lbset = ival;
283
    }
283
    }
284
    else if (!strcasecmp(key, "requesttimeout")) {
285
        /* Request timeout in seconds.
286
         * Defaults to connection timeout
287
         */
288
        ival = atoi(val);
289
        if (ival < 0)
290
            return "Negetive timeouts not allowed for requesttimeout.";
291
        worker->req_timeout = apr_time_from_sec(ival);
292
        worker->req_timeout_set = 1;
293
    }
284
    else {
294
    else {
285
        return "unknown Worker parameter";
295
        return "unknown Worker parameter";
286
    }
296
    }
(-)mod_proxy.h (+2 lines)
Lines 348-353 Link Here
348
    int             flush_wait;  /* poll wait time in microseconds if flush_auto */
348
    int             flush_wait;  /* poll wait time in microseconds if flush_auto */
349
    apr_interval_time_t ping_timeout;
349
    apr_interval_time_t ping_timeout;
350
    char ping_timeout_set;
350
    char ping_timeout_set;
351
    apr_interval_time_t req_timeout;
352
    char req_timeout_set;
351
    int             lbset;      /* load balancer cluster set */
353
    int             lbset;      /* load balancer cluster set */
352
    char            retry_set;
354
    char            retry_set;
353
    char            disablereuse;
355
    char            disablereuse;

Return to bug 45445