1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

PR50220: keep on chugging after EINTR in mod_proxy_connect

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1031551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2010-11-05 13:12:14 +00:00
parent 025ffd8686
commit b76f1b5dbf
2 changed files with 6 additions and 0 deletions

View File

@@ -438,6 +438,9 @@ static int proxy_connect_handler(request_rec *r, proxy_worker *worker,
while (1) { /* Infinite loop until error (one side closes the connection) */
if ((rv = apr_pollset_poll(pollset, -1, &pollcnt, &signalled))
!= APR_SUCCESS) {
if (APR_STATUS_IS_EINTR(rv)) {
continue;
}
apr_socket_close(sock);
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "proxy: CONNECT: error apr_poll()");
return HTTP_INTERNAL_SERVER_ERROR;