]> git.pld-linux.org Git - packages/apache.git/blame - httpd-dummy-connection-result.patch
- force new openssl version (to avoid runtime errors like undefined symbol: SRP_VBASE...
[packages/apache.git] / httpd-dummy-connection-result.patch
CommitLineData
c7bf1976
AM
1--- httpd-2.4.4.org/server/mpm_unix.c 2012-07-03 21:38:58.000000000 +0200
2+++ httpd-2.4.4/server/mpm_unix.c 2013-04-15 14:27:54.197655418 +0200
3@@ -604,7 +604,17 @@
4 len = strlen(data);
5 }
6
7- apr_socket_send(sock, data, &len);
8+ rv = apr_socket_send(sock, data, &len);
9+ if (rv == APR_SUCCESS && lp->protocol && strcasecmp(lp->protocol, "http") == 0) {
10+ char *buffer[10]; // dummy buffer to see if child is alive
11+
12+ len = sizeof(buffer);
13+ rv = apr_socket_recv(sock, buffer, &len);
14+ if (rv != APR_SUCCESS) {
15+ ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, ap_server_conf,
16+ "receiving response to dummy data to listener on %pI", lp->bind_addr);
17+ }
18+ }
19 apr_socket_close(sock);
20 apr_pool_destroy(p);
21
This page took 0.023677 seconds and 4 git commands to generate.