[GHC] #806: hGetBufNonBlocking doesn't work on Windows
GHC
trac at galois.com
Thu Dec 7 11:03:01 EST 2006
#806: hGetBufNonBlocking doesn't work on Windows
----------------------------+-----------------------------------------------
Reporter: titto at kamus.it | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 6.8
Component: libraries/base | Version: 6.4.2
Severity: normal | Resolution:
Keywords: | Difficulty: Moderate (1 day)
Testcase: hGetBuf001 | Architecture: x86
Os: Windows |
----------------------------+-----------------------------------------------
Changes (by simonmar):
* difficulty: Unknown => Moderate (1 day)
* milestone: 6.6.1 => 6.8
* testcase: => hGetBuf001
* summary: hGetBufNonBlocking doesn't work with -threaded on Windows =>
hGetBufNonBlocking doesn't work on Windows
Comment:
Changing the title of this bug: hGetBufNonBlocking doesn't work at all on
Windows, -threaded or not. The problem is that the I/O system doesn't
have any non-blocking primitives, unlike on Unix where we use
`O_NONBLOCK`.
One way to fix this would be to start using overlapped I/O on Widnows,
together with the IO manager thread to wait for blocking I/O operations.
This would be a good thing, but it probably isn't going to happen for
6.6.1.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/806>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list