• Show log

    Commit

  • Hash : 5880e4a1
    Author : Mark Ellzey
    Date : 2012-02-14T18:04:52

    Support TCP_DEFER_ACCEPT sockopts for listeners
    
    A listening socket can be enabled with the sockopt
    TCP_DEFER_ACCEPT. This informs the kernel to not call the user-land
    accept() until real data has been written to the socket.
    
    A new flag LEV_OPT_DEFERRED_ACCEPT has been introduced to
    automatically set this option. Optionally
    evutil_make_tcp_listen_socket_deferred() can be called manually.
    
    (Tweaked slightly by nickm.)