core: Don't truncate output when sending is interrupted by a signal,

such as from an exiting CGI process.

PR: 55643


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1530793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2013-10-09 21:09:41 +00:00
parent ec6996c38d
commit b299ff2e98
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
*) core: Don't truncate output when sending is interrupted by a signal,
such as from an exiting CGI process. PR 55643. [Jeff Trawick]
*) core: Add missing Reason-Phrase in HTTP response headers.
PR 54946. [Rainer Jung]

View File

@ -779,7 +779,9 @@ static apr_status_t send_brigade_blocking(apr_socket_t *s,
pollset.reqevents = APR_POLLOUT;
pollset.desc.s = s;
apr_socket_timeout_get(s, &timeout);
rv = apr_poll(&pollset, 1, &nsds, timeout);
do {
rv = apr_poll(&pollset, 1, &nsds, timeout);
} while (APR_STATUS_IS_EINTR(rv));
if (rv != APR_SUCCESS) {
break;
}