From f665924649b3d6306eb3c24df8f77c3671b7a082 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 15 Feb 2011 11:33:40 -0500 Subject: [PATCH] Correct evhttp_del_accept_socket documentation on whether socket is closed Thanks to Constantine Verutin for pointing this out. --- include/event2/http.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/event2/http.h b/include/event2/http.h index e05c3bff..4ffa7ac6 100644 --- a/include/event2/http.h +++ b/include/event2/http.h @@ -154,7 +154,10 @@ struct evconnlistener *evhttp_bound_socket_get_listener(struct evhttp_bound_sock * This may be useful when a socket has been sent via file descriptor passing * and is no longer needed by the current process. * - * This function does not close the socket. + * If you created this bound socket with evhttp_bind_socket_with_handle or + * evhttp_accept_socket_with_handle, this function closes the fd you provided. + * If you created this bound socket with evhttp_bind_listener, this function + * frees the listener you provided. * * \a bound_socket is an invalid pointer after this call returns. *