From: Nick Mathewson Date: Thu, 16 Feb 2012 02:27:52 +0000 (-0500) Subject: Add another caveat to the TCP_DEFER_ACCEPT documentation X-Git-Tag: release-2.1.1-alpha~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a270728e28e9b4107a9839d9dd8d30182139114c;p=libevent Add another caveat to the TCP_DEFER_ACCEPT documentation --- diff --git a/include/event2/listener.h b/include/event2/listener.h index 6c3bd775..10887bae 100644 --- a/include/event2/listener.h +++ b/include/event2/listener.h @@ -76,7 +76,12 @@ typedef void (*evconnlistener_errorcb)(struct evconnlistener *, void *); * available, if possible. Ignored on platforms that do not support this. * * This option can help performance for protocols where the client transmits - * immediately after connecting. */ + * immediately after connecting. + * + * This option is only supported by evconnlistener_new_bind(): it can't + * work with evconnlistener_new_fd(), since the listener needs to be told + * to use the option before it is actually bound. + */ #define LEV_OPT_DEFERRED_ACCEPT (1u<<6) /**