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?

run()
{
    in.read(); //taking fer ever!
}

interrupt()
{
     //????
}


Owen Williams

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

>From devl-admin at freenetproject.org  Fri Apr 13 21:32:20 2001
Return-Path: <devl-admin at freenetproject.org>
Received: from hawk.freenetproject.org (postfix@[4.18.42.11])
        by funky.danky.com (8.9.3/8.8.7) with ESMTP id VAA18407
        for <danello at danky.com>; Fri, 13 Apr 2001 21:32:19 -0400
Received: from hawk.freenetproject.org (localhost [127.0.0.1])
        by hawk.freenetproject.org (Postfix) with ESMTP
        id A93B358097; Fri, 13 Apr 2001 18:14:05 -0700 (PDT)
Delivered-To: devl at freenetproject.org
Received: from mail1.telia.com (t6o70p59.telia.com [195.67.239.179])

Reply via email to