Ticket #5843 (closed bug: fixed)
hGetBufSome blocks when all available input is buffered (on Windows only)
| Reported by: | joeyadams | Owned by: | pcapriotti |
|---|---|---|---|
| Priority: | high | Milestone: | 7.4.2 |
| Component: | libraries/base | Version: | 7.2.2 |
| Keywords: | Cc: | ||
| Operating System: | Windows | Architecture: | x86 |
| Type of failure: | Incorrect result at runtime | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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_.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

