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

(-)a/modules/proxy/mod_proxy_fcgi.c (-4 / +2 lines)
Lines 569-583 static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf, Link Here
569
    ob = apr_brigade_create(r->pool, c->bucket_alloc);
569
    ob = apr_brigade_create(r->pool, c->bucket_alloc);
570
570
571
    while (! done) {
571
    while (! done) {
572
        apr_interval_time_t timeout = conn->worker->s->timeout;
572
        apr_interval_time_t timeout;
573
        apr_size_t len;
573
        apr_size_t len;
574
        int n;
574
        int n;
575
575
576
        /* We need SOME kind of timeout here, or virtually anything will
576
        /* We need SOME kind of timeout here, or virtually anything will
577
         * cause timeout errors. */
577
         * cause timeout errors. */
578
        if (! conn->worker->s->timeout_set) {
578
        apr_socket_timeout_get(conn->sock, &timeout);
579
            timeout = apr_time_from_sec(30);
580
        }
581
579
582
        rv = apr_poll(&pfd, 1, &n, timeout);
580
        rv = apr_poll(&pfd, 1, &n, timeout);
583
        if (rv != APR_SUCCESS) {
581
        if (rv != APR_SUCCESS) {

Return to bug 54973