Ticket #4 (closed defect: duplicate)
sIsReadable and sIsWritable return true after socket is closed.
|Reported by:||igloo||Owned by:|
First reported here: http://hackage.haskell.org/trac/ghc/ticket/2774
> import Network.Socket > s <- socket AF_INET Stream 6 Loading package parsec-188.8.131.52 ... linking ... done. Loading package network-184.108.40.206 ... linking ... done. > bindSocket s (SockAddrInet 0 0) > listen s 1 > sClose s > sIsReadable s True > sIsWritable s True
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.