[GHC] #2996: Network.Socket.sClose should change socket status

GHC trac at galois.com
Sun Mar 29 17:11:10 EDT 2009


#2996: Network.Socket.sClose should change socket status
----------------------------------+-----------------------------------------
    Reporter:  amthrax            |        Owner:  tibbe           
        Type:  bug                |       Status:  new             
    Priority:  normal             |    Milestone:  6.10.2          
   Component:  libraries/network  |      Version:  6.10.1          
    Severity:  normal             |   Resolution:                  
    Keywords:                     |   Difficulty:  Unknown         
    Testcase:                     |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |  
----------------------------------+-----------------------------------------
Comment (by tibbe):

 Sorry for the late reply. `closed-state.patch` looks fine to me. As for
 the second patch I think we need to figure out the performance
 consequences of checking an MVar for every op before we make the change.

 Perhaps it would be worthwhile to write down which guarantees the API
 currently gives and could give when used in multi-threaded code. I'm not
 even entirely sure what guarantees we give at the moment, without your
 patches. If nothing else that would serve as good documentation.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2996#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list