Article View: comp.lang.java.programmer
Article #165Re: Netscape socket continues blocking after close()
From: Paul Murray
Date: Sun, 17 Dec 2000 00:07
Date: Sun, 17 Dec 2000 00:07
34 lines
2474 bytes
2474 bytes
Try doing a notify() on the socket - may or may not work, depending on how blocking is implemented. -- -------------------------------------------------------------- Repent! Quit your job! Slack off! http://www.users.bigpond.com/pmurray ICQ: 26066755 "Evil Doona Bandit" <evildoonabandit@my-deja.com> wrote in message news:91hkvn$5t2$1@nnrp1.deja.com... > Hi, > > A small problem that I've encountered with testing an applet in > Netscape: > > Thread 1 blocks on the readObject() call to a (client) Socket's input > stream. > > Thread 2 closes the socket, which should hopefully force Thread 2 to > throw an IOException, but doesn't. The socket has been closed, but > Thread 1 keeps blocking in Netscape v4.70, even though in Sun's > appletviewer and IE v5.5 it is well behaved and throws the exception. > > Has anyone else had the same problem with Netscape? Any ideas? I would > rather not change the code to put in a Socket timeout, and then have to > regularly check a flag to see if the socket is due to be closed, etc. > > Thanks in advance! > > EDB > > > Sent via Deja.com > http://www.deja.com/
Technical Details
Message-ID:
<WW1%5.160574$e5.123342@newsfeeds.bigpond.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!news1.optus.net.au!optus!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mailReferences:
<91hkvn$5t2$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,a3545717b2d82fe5 X-Google-Attributes: gid10d6db,public X-Google-Thread: 10a146,a3545717b2d82fe5 X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,a3545717b2d82fe5 X-Google-Attributes: gid113ae9,public X-Google-ArrivalTime: 2000-12-17 04:13:18 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!news1.optus.net.au!optus!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mail From: "Paul Murray" <pmurray@nospam.bigpond.com> Newsgroups: comp.lang.java.programmer,comp.lang.java.help,aus.computers.java References: <91hkvn$5t2$1@nnrp1.deja.com> Subject: Re: Netscape socket continues blocking after close() Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Message-ID: <WW1%5.160574$e5.123342@newsfeeds.bigpond.com> Date: Sun, 17 Dec 2000 11:07:20 +1100 NNTP-Posting-Host: 203.54.250.222 X-Trace: newsfeeds.bigpond.com 977054518 203.54.250.222 (Sun, 17 Dec 2000 23:01:58 EST) NNTP-Posting-Date: Sun, 17 Dec 2000 23:01:58 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com)