From a270728e28e9b4107a9839d9dd8d30182139114c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 15 Feb 2012 21:27:52 -0500 Subject: [PATCH] Add another caveat to the TCP_DEFER_ACCEPT documentation --- include/event2/listener.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) /**