Commit e0f19d2f authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Some shutdown work.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88669 13f79535-47bb-0310-9956-ffa450edef68
parent fea6d7ce
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -678,7 +678,7 @@ static void winnt_accept(void *listen_socket)

    nlsd = (SOCKET) listen_socket;

    while (1) {
    while (!shutdown_in_progress) {
        pCompContext = NULL;
        /* Grab a context off the queue */
        apr_lock_acquire(qlock);
@@ -758,6 +758,9 @@ static void winnt_accept(void *listen_socket)
                pCompContext->accept_socket = INVALID_SOCKET;
                ap_log_error(APLOG_MARK, APLOG_DEBUG, lasterror, server_conf,
                             "winnt_accept: AcceptEx failed. Reallocate the accept socket and try again.");
                if (shutdown_in_progress)
                    break;
                else
                    goto again;
            }
            else if (lasterror != APR_FROM_OS_ERROR(ERROR_IO_PENDING)) {