• Show log

    Commit

  • Hash : d96457e1
    Author : kenping
    Date : 2022-04-21T15:59:28

    listener: Preserve last error in evconnlistener_new_bind() before close
    
    In function evconnlistener_new_bind() after go to "err:", The
    evutil_closesocket() would clear the error code( I found this under
    Windows ). User can not use EVUTIL_SOCKET_ERROR() to get the
    evconnlistener_new_bind()'s failing error.
    
    I add a err_code variable to store and restore the last error code.
    
    v2: rebased by azat to make the patch simpler