[GHC] #6057: hGetBufNonBlocking blocks the underlying handle on Windows

GHC cvs-ghc at haskell.org
Sun Apr 29 12:36:53 CEST 2012


#6057: hGetBufNonBlocking blocks the underlying handle on Windows
-----------------------------------------+----------------------------------
 Reporter:  cetinsert                    |          Owner:                  
     Type:  bug                          |         Status:  new             
 Priority:  normal                       |      Component:  libraries/base  
  Version:  7.0.4                        |       Keywords:                  
       Os:  Windows                      |   Architecture:  Unknown/Multiple
  Failure:  Incorrect result at runtime  |       Testcase:                  
Blockedby:                               |       Blocking:                  
  Related:                               |  
-----------------------------------------+----------------------------------

Comment(by cetinsert):

 Defining (>-) in terms of recv and sendAll from Network.Socket.ByteString
 does **SOLVE** the problem and both variants behave exactly the same at
 run time and this is the only correct behaviour as I have no way of
 knowing or special-casing which application layer protocols expect
 initiation from which end (client input first or server greeting first).

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



More information about the Glasgow-haskell-bugs mailing list