Commit 44979644 authored by Joe Orton's avatar Joe Orton
Browse files

* 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
parent d3c2258e
Loading
Loading
Loading
Loading
+3 −2
Changes for server/mpm_common.c: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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);