Ticket #2774 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

sIsReadable and sIsWritable return true after socket is closed.

Reported by: felixmar Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/network Version: 6.10.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

> 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.

Change History

Changed 4 years ago by igloo

  • difficulty set to Unknown
  • milestone set to Not GHC

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.