disable write level event while waiting auth server response

This commit is contained in:
Igor Sysoev 2006-10-20 20:43:01 +00:00
parent a1e7b04a43
commit 73c80d82c1

View File

@ -250,6 +250,12 @@ ngx_imap_auth_http_write_handler(ngx_event_t *wev)
ngx_del_timer(wev);
}
if (ngx_handle_write_event(wev, 0) == NGX_ERROR) {
ngx_close_connection(ctx->peer.connection);
ngx_destroy_pool(ctx->pool);
ngx_imap_session_internal_server_error(s);
}
return;
}
}