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

Comment(by cetinsert):

 @simonmar I closed it because I found out I was calling hSetBuffering
 NoBuffering twice on the same handle from different Haskell threads. Now I
 came to learn that one should not have any assumptions on how handles
 should behave as they seem to very platform specific in funny ways. I
 updated the library I wrote to explicitly mention the handle buffering
 states it can work with
 (http://hackage.haskell.org/packages/archive/splice/0.6.1/doc/html
 /Network-Socket-Splice.html#v:hSplice) and the problems are gone.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6057#comment:7>
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

Reply via email to