SOCKET-CONNECTED-P should check that the socket is in the TCP state ESTABLISHED

Bug #719683 reported by Greg Pfeil on 2011-02-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IOLib
Wishlist
Unassigned

Bug Description

On some systems (notably OS X) getpeername(2) returns EINVAL when the socket has been disconnected (as in http://pubs.opengroup.org/onlinepubs/007908799/xns/getpeername.html). SOCKET-CONNECTED-P doesn't catch this (since in POSIX getpeername, EINVAL is specified to be returned in different situations).

Stelian Ionescu (sionescu) wrote :

Ignore EINVAL for the moment, try to find a better way in the future

summary: - SOCKET-CONNECTED-P crashes on socket that's been shut down
+ SOCKET-CONNECTED-P should check that the socket is in the TCP state
+ ESTABLISHED
Changed in iolib:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers