Article View: aus.computers.java
Article #144objectInputStream.readObject() does not work properly after certain period of inactivity.
From: Serial # 19781010
Date: Tue, 15 Jul 2003 20:14
Date: Tue, 15 Jul 2003 20:14
13 lines
1976 bytes
1976 bytes
I have a multithreaded server - one thread / client. I have a client 1 connected to thread A, and a I have client 2 connected to thread B. After certain equal period of inactivity Client 1 sends a message to Thread A. Thread A receives the message, and sends it back to client 1 as well as client 2. Client 1 receives the message succesfully but then when Thread A tries to send to client 2 out of a sudden Thread B throws "Connection Reset By Peer" where it was blocking on .readObject(); (note that Thread B has not read anything from CLient 2 cause Client2 never wrote anything.) and then (right after that) Thread A throws a "Broken Pipe" exception where it did .writeObject() which is strange as Client 1 actualy receives the message succesfully from thread A. This only happens if there is a period of inactivity on both clients, other than that everything works fine.
Technical Details
Message-ID:
<ef29hvsaq3fsrgh4r1q2ifm9rcfqv4gf26@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.mountaincable.net!cyclone01.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,6455a78884d226cd,start X-Google-Attributes: gid10d6db,public X-Google-ArrivalTime: 2003-07-15 13:16:07 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.mountaincable.net!cyclone01.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail From: Serial # 19781010 <ziggy80@rogers.com> Newsgroups: aus.computers.java Subject: objectInputStream.readObject() does not work properly after certain period of inactivity. Message-ID: <ef29hvsaq3fsrgh4r1q2ifm9rcfqv4gf26@4ax.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 13 Date: Tue, 15 Jul 2003 20:14:28 GMT NNTP-Posting-Host: 65.50.43.84 X-Complaints-To: abuse@rogers.com X-Trace: news01.bloor.is.net.cable.rogers.com 1058300068 65.50.43.84 (Tue, 15 Jul 2003 16:14:28 EDT) NNTP-Posting-Date: Tue, 15 Jul 2003 16:14:28 EDT