#5843: hGetBufSome blocks when all available input is buffered (on Windows only)
-----------------------------------------+----------------------------------
 Reporter:  joeyadams                    |          Owner:                
     Type:  bug                          |         Status:  new           
 Priority:  normal                       |      Component:  libraries/base
  Version:  7.2.2                        |       Keywords:                
       Os:  Windows                      |   Architecture:  x86           
  Failure:  Incorrect result at runtime  |       Testcase:                
Blockedby:                               |       Blocking:                
  Related:                               |  
-----------------------------------------+----------------------------------
 See the attached program.  On Windows, it blocks on hGetSome.

 If I take out the hGetLine and hWaitForInput, hGetSome does not block.  If
 I add <code>hSetBuffering h NoBuffering</code>, hGetBufSome still blocks
 after hWaitForInput because it does some buffering when it calls
 hLookAhead_.

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