ASF Bugzilla – Attachment 33336 Details for
Bug 56188
mod_proxy_fcgi does not send FCGI_ABORT_REQUEST on client disconnect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug fix patch
mod_proxy_fcgi.diff (text/plain), 1.95 KB, created by
Jason Michaelson
on 2015-12-10 14:58:46 UTC
(
hide
)
Description:
Bug fix patch
Filename:
MIME Type:
Creator:
Jason Michaelson
Created:
2015-12-10 14:58:46 UTC
Size:
1.95 KB
patch
obsolete
>--- mod_proxy_fcgi.c >+++ mod_proxy_fcgi.c >384c384 >< apr_bucket_brigade *ib, *ob; >--- >> apr_bucket_brigade *ib, *ob, *cib; >392c392 >< apr_pollfd_t pfd; >--- >> apr_pollfd_t pfd[2]; >395,398c395,398 >< pfd.desc_type = APR_POLL_SOCKET; >< pfd.desc.s = conn->sock; >< pfd.p = r->pool; >< pfd.reqevents = APR_POLLIN | APR_POLLOUT; >--- >> pfd[0].desc_type = APR_POLL_SOCKET; >> pfd[0].desc.s = conn->sock; >> pfd[0].p = r->pool; >> pfd[0].reqevents = APR_POLLIN | APR_POLLOUT; >399a400,403 >> pfd[1].desc_type = APR_POLL_SOCKET; >> pfd[1].desc.s = (apr_socket_t*)ap_get_module_config(r->connection->conn_config, &core_module); >> pfd[1].p = r->connection->pool; >> pfd[1].reqevents = APR_POLLIN; >402a408 >> cib = apr_brigade_create(r->connection->pool, c->bucket_alloc); >412c419 >< rv = apr_poll(&pfd, 1, &n, timeout); >--- >> rv = apr_poll(pfd, 2, &n, timeout); >420c427 >< if (pfd.rtnevents & APR_POLLOUT) { >--- >> if (pfd[0].rtnevents & APR_POLLOUT) { >466c473 >< pfd.reqevents = APR_POLLIN; /* Done with input data */ >--- >> pfd[0].reqevents = APR_POLLIN; /* Done with input data */ >481c489,494 >< if (pfd.rtnevents & APR_POLLIN) { >--- >> if( pfd[1].rtnevents & APR_POLLIN ) { >> rv = ap_get_brigade(r->connection->input_filters, cib, AP_MODE_SPECULATIVE, APR_NONBLOCK_READ, 256); >> if( rv != APR_SUCCESS && rv != APR_EAGAIN ) { >> ap_fcgi_fill_in_header(&header, AP_FCGI_ABORT_REQUEST, request_id, >> 0, 0); >> ap_fcgi_header_to_array(&header, farray); >481a496,497 >> vec[0].iov_base = (void *)farray; >> vec[0].iov_len = sizeof(farray); >481a499,502 >> rv = send_data(conn, vec, 1, &len, 1); >> break; >> } >> } >481a504 >> if (pfd[0].rtnevents & APR_POLLIN) { >680a704 >> apr_brigade_destroy(cib);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56188
:
33336
|
33433
|
34073
|
34560
|
34572
|
34574
|
34685
|
34692