From: Joe Orton Date: Thu, 30 Jun 2005 09:10:25 +0000 (+0000) Subject: * server/mpm_common.c (dummy_connection): Fix length argument passed X-Git-Tag: 2.1.7~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11865f1c06d1ade4a215ddb07730b03f3bb3c4bd;p=apache * server/mpm_common.c (dummy_connection): Fix length argument passed to apr_socket_send. Remove redundant _shutdown call. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@202508 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm_common.c b/server/mpm_common.c index 0fa8485fa4..b4343004b9 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -550,6 +550,7 @@ static apr_status_t dummy_connection(ap_pod_t *pod) apr_status_t rv; apr_socket_t *sock; apr_pool_t *p; + apr_size_t len; /* create a temporary pool for the socket. pconf stays around too long */ rv = apr_pool_create(&p, pod->p); @@ -605,8 +606,8 @@ static apr_status_t dummy_connection(ap_pod_t *pod) * listener, and send the correct type of request to trigger any Accept * Filters. */ - apr_socket_send(sock, srequest, strlen(srequest)); - apr_socket_shutdown(sock, APR_SHUTDOWN_WRITE); + len = strlen(srequest); + apr_socket_send(sock, srequest, &len); apr_socket_close(sock); apr_pool_destroy(p);