os/linux: return error on EALREADY for connect() and getsockoptError()

When a connected socket file descriptor on Linux is re-acquired
    after being closed, through fuzz testing, it appears that a
    subsequent attempt to establish a connection with the file
    descriptor causes EALREADY to be reported.

    Instead of panicking, choose to return error.ConnectionPending
    to allow for users to handle this fairly rare case.
2bfc6d14d5lithdew committed on 4/6/2021, 9:30:20 AM· committed by Isaac Freundparent83a2665
1 file changedLine totals unavailable