[network] #7: Network.Socket.recv throws IOException on reading 0 bytes

#7: Network.Socket.recv throws IOException on reading 0 bytes ---------------------+------------------------------------------------------ Reporter: tibbe | Owner: Type: defect | Status: new Priority: major | Milestone: Component: network | Version: Keywords: | ---------------------+------------------------------------------------------ Initially reported here: http://hackage.haskell.org/trac/ghc/ticket/3071 ---- My man pages has the following to say about the return value of recv: These calls return the number of bytes received, or -1 if an error occurred. For TCP sockets, the return value 0 means the peer has closed its half side of the connection. This means that it's absolutely fine to read 0 bytes when using e.g. UDP socket. However, the Network.Socket.recv function always throws an exception upon reading 0 bytes regardless of the protocol family. -- Ticket URL: http://trac.haskell.org/network/ticket/7 network http://projects.haskell.org/network/ Networking-related facilities

#7: Network.Socket.recv throws IOException on reading 0 bytes ----------------------+----------------------------------------------------- Reporter: tibbe | Owner: anonymous Type: defect | Status: assigned Priority: major | Milestone: Component: network | Version: Resolution: | Keywords: ----------------------+----------------------------------------------------- Changes (by anonymous): * owner: => anonymous * status: new => assigned -- Ticket URL: http://trac.haskell.org/network/ticket/7#comment:1 network http://projects.haskell.org/network/ Networking-related facilities

#7: Network.Socket.recv throws IOException on reading 0 bytes ----------------------+----------------------------------------------------- Reporter: tibbe | Owner: tibbe Type: defect | Status: new Priority: major | Milestone: Component: network | Version: Resolution: | Keywords: ----------------------+----------------------------------------------------- Changes (by tibbe): * owner: anonymous => tibbe * status: assigned => new -- Ticket URL: http://trac.haskell.org/network/ticket/7#comment:2 network http://projects.haskell.org/network/ Networking-related facilities
participants (1)
-
network