Network.Socket.connect: support for sockets w/ bound local endpoints
Just in case this isn't taken care of by the ongoing rewrite of 'network', but there's an age-old limitation in the implementation of Network.Socket.connect -- it balks at being given a socket where the local endpoint (port,iface) has already been bound.
i.e., it socket status test ought to be
not (currentStatus
elem
[NotConnected,Bound])
The workaround of manually resetting SocketStatus always leaves me feeling icky.
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/network |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |