Re: Connection resets after a minute,.
- From: Steve Horsley <shoot@xxxxxxxx>
- Date: Fri, 01 Apr 2005 19:48:41 +0100
Kalpesh Modha wrote:
Hello All.
What I am doing is after my class below connects to the server. I disconnect the network cable from the computer. If I reconnect the network cable after about a minute or so all is well and the client works correctly.
However if I remove the network cable but this time send some data like a OK message using the writeMessage method all works, but after a minute the replyRead = dataReader.readLine(); fails with a null, with results in a connection reset message. The network cable is still disconnected at this time.
I think that the print writer has sent the information to the TCP buffer, as the system can not do anything and is waiting.
Is there a timer I can increase ?
What I am trying to achieve is that the client should should work over a VPN, I get this connection reset after a while periodically. I guess the VPN is very hostile.
<code snipped>
I don't think there is anything you can do in java to change the underlying
TCP retransmission timers and counters. I would suggest that you change your
appllication to accept the possibility of such disconnections and to then
attempt to open a new connection in its place. Once you get this working, your application will be extremely robust.
Steve .
- References:
- Connection resets after a minute,.
- From: Kalpesh Modha
- Connection resets after a minute,.
- Prev by Date: Re: how to get the immediate superclass of a given object
- Next by Date: Re: multiple inheritence
- Previous by thread: Connection resets after a minute,.
- Next by thread: Re: GridBagLayout question
- Index(es):
Relevant Pages
|
|