socket: avoid getpeername after shutdown(SHUT_WR)
avoid using getpeername(2) if the socket was already closed for writing, as it will report the socket as disconnected.
Closes: #12 (closed)
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com
avoid using getpeername(2) if the socket was already closed for writing, as it will report the socket as disconnected.
Closes: #12 (closed)
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com