
#13497: GHC does not use select()/poll() correctly on non-Linux platforms -------------------------------------+------------------------------------- Reporter: nh2 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #8684, #12912 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nh2): OK I have now also checked the situation on Windows: Windows `select()` does not set the `timeout` parameter to the remaining time. So currently `fdReady()` on Windows is as wrong as it is for the BSDs, and may wait forever even if given a max timeout. Source: https://msdn.microsoft.com/en- us/library/windows/desktop/ms740141(v=vs.85).aspx {{{ _In_ const struct timeval *timeout }}} I'll try to fix it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13497#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler