[network] #10: Network.Socket.connect: support for sockets w/ bound
local endpoints
network
libraries at haskell.org
Wed May 13 06:00:47 EDT 2009
#10: Network.Socket.connect: support for sockets w/ bound local endpoints
---------------------+------------------------------------------------------
Reporter: tibbe | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: network | Version:
Keywords: |
---------------------+------------------------------------------------------
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.
(Copied from http://hackage.haskell.org/trac/ghc/ticket/3143)
--
Ticket URL: <http://trac.haskell.org/network/ticket/10>
network <http://projects.haskell.org/network/>
Networking-related facilities
More information about the Libraries
mailing list