hGetBufSome blocks when all available input is buffered (on Windows only)
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_.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.2.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |