Ticket #4 (closed defect: duplicate)

Opened 7 years ago

Last modified 7 years ago

sIsReadable and sIsWritable return true after socket is closed.

Reported by: igloo Owned by:
Priority: major Milestone:
Component: network Version:
Keywords: Cc:


First reported here: http://hackage.haskell.org/trac/ghc/ticket/2774

> import Network.Socket
> s <- socket AF_INET Stream 6
Loading package parsec- ... linking ... done.
Loading package network- ... linking ... done.
> bindSocket s (SockAddrInet 0 0)
> listen s 1
> sClose s
> sIsReadable s
> sIsWritable s

sIsReadable and sIsWritable return true when the SocketStatus is Connected or Listening. sClose does not change the status. Perhaps a new status Closed should be added to SocketStatus.

Change History

Changed 7 years ago by bos

  • status changed from new to closed
  • resolution set to duplicate

This is a duplicate of ticket #6, and is already fixed.

Note: See TracTickets for help on using tickets.