• Yossi Gottlieb's avatar
    Conns: Fix connClose() / connAccept() behavior. · fa9aa908
    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).
    fa9aa908
connection.c 13.8 KB