Hello Cafe.<br><br>I cannot accept socket connection with timeout (Windows, GHC 7.4,1). Consider following code:<br><br>&gt; import Network<br>&gt; import System.Timeout<br>&gt; main = withSocketsDo $ do<br>&gt;     print &quot;:: Starting server ...&quot;<br>
&gt;     sock &lt;- listenOn (PortNumber 4010)<br>&gt;     res &lt;- timeout 1 (accept sock)<br>&gt;     print &quot;Timed out&quot; -- Never output!<br>&gt;     sClose sock<br><br>Documentation on <a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-Timeout.html">http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-Timeout.html</a> says:&quot;... Standard I/O functions like ... Network.Socket.accept, ... appear to be blocking, but they really don&#39;t because the runtime system uses scheduling mechanisms like select(2) to perform asynchronous I/O, so it is possible to interrupt standard socket I/O or file I/O using this combinator.&quot; Neither Network.accept, nor Network.Socket.accept can be timed out is example above.<div>
<br></div><div>Is it bug?</div>