#5843: hGetBufSome blocks when all available input is buffered (on Windows only)
-------------------------------+--------------------------------------------
Reporter: joeyadams | Owner: pcapriotti
Type: bug | Status: new
Priority: high | Milestone: 7.4.2
Component: libraries/base | Version: 7.2.2
Keywords: | Os: Windows
Architecture: x86 | Failure: Incorrect result at runtime
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------+--------------------------------------------
Comment(by duncan):
See `GHC/IO/FD.hs`, in the "FD operations" section, in the `!
mingw32_HOST_OS` case:
{{{
readRawBufferPtrNoBlock :: String -> FD -> Ptr Word8 -> Int -> CSize -> IO
CInt
readRawBufferPtrNoBlock = readRawBufferPtr
writeRawBufferPtrNoBlock :: String -> FD -> Ptr Word8 -> Int -> CSize ->
IO CInt
writeRawBufferPtrNoBlock = writeRawBufferPtr
}}}
There does not seem to be any non-blocking impl here for windows (where
there is one for unix just above).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5843#comment:4>
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