]> granicus.if.org Git - apache/commitdiff
* server/mpm_common.c (dummy_connection): Fix length argument passed
authorJoe Orton <jorton@apache.org>
Thu, 30 Jun 2005 09:10:25 +0000 (09:10 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 30 Jun 2005 09:10:25 +0000 (09:10 +0000)
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

server/mpm_common.c

index 0fa8485fa4d3c3785e5551eb9c1d6193febf8e05..b4343004b9f3ce785aa09b839cde3768ae39b844 100644 (file)
@@ -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);