• Yossi Gottlieb's avatar
    Conns: Fix connClose() / connAccept() behavior. · 87dbd8f5
    Yossi Gottlieb authored
    We assume accept handlers may choose to reject a connection and close
    it, but connAccept() callers can't distinguish between this state and
    other error states requiring connClose().
    
    This makes it safe (and mandatory!) to always call connClose() if
    connAccept() fails, and safe for accept handlers to close connections
    (which will defer).
    87dbd8f5
connection.h 9.34 KB