]> granicus.if.org Git - libevent/commitdiff
Add another caveat to the TCP_DEFER_ACCEPT documentation
authorNick Mathewson <nickm@torproject.org>
Thu, 16 Feb 2012 02:27:52 +0000 (21:27 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 16 Feb 2012 02:27:52 +0000 (21:27 -0500)
include/event2/listener.h

index 6c3bd775eb90b44c491723b400acc098f4390206..10887bae64e0fa07d82c12f96acd88bad5e6f50d 100644 (file)
@@ -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)
 
 /**