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

Bug #719683 reported by Greg Pfeil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IOLib
New
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).

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.