#2774: sIsReadable and sIsWritable return true after socket is closed.
---------------------------------+------------------------------------------
Reporter: felixmar | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/network
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown/Multiple | Os: Unknown/Multiple
---------------------------------+------------------------------------------
{{{
> import Network.Socket
> s <- socket AF_INET Stream 6
Loading package parsec-2.1.0.1 ... linking ... done.
Loading package network-2.2.0.1 ... 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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2774>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs