On Fri, Apr 13, 2001 at 07:46:58PM -0500, Owen Williams wrote: > What is the accepted way of interrupting an InputStream? For instance, > if I have a thread waiting for a response with an in.read(), how do I go > about interrupting it? I tried socket.close() hoping to provoke a > SocketException, but as I expected this doesn't occur until the read > completes. What's the Right Way to do this?
Socket.setSoTimeout() is the only sure way (and it breaks on a couple of jvms, including Microsoft's jview). All other methods are unspecified at best... -- 'DeCSS would be fine. Where is it?' 'Here,' Montag touched his head. 'Ah,' Granger smiled and nodded. Oskar Sandberg md98-osa at nada.kth.se _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl >From devl-admin at freenetproject.org Fri Apr 13 21:56:19 2001 Return-Path: <devl-admin at freenetproject.org> Received: from hawk.freenetproject.org (postfix@[4.18.42.11])
