Re: Connection resets after a minute,.



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
.



Relevant Pages

  • Re: VPN disconnects after 3 - 6 minutes
    ... > VPN connection is disconnected after several minutesVPN connection is disconnected after several minutes. ... > corporate VPN running on a Compaq nc2400 dual core laptop. ... > disconnect because it does not reload and try to reconnect. ...
    (microsoft.public.windowsxp.work_remotely)
  • RE: VPN disconnect!
    ... I understand that the VPN connection to the SBS ... Microsoft CSS Online Newsgroup Support ... >Thread-Topic: VPN disconnect! ...
    (microsoft.public.windows.server.sbs)
  • Re: Not getting user specified IP address after VPN drop and reconnect
    ... you have many options to restrict VPN connections... ... I am running a Windows 2003 Server as a VPN server for multiple client ... initiated disconnect of the VPN), then tries to reconnect within the next few ... It looks like when there is a connection drop, ...
    (microsoft.public.win2000.ras_routing)
  • Re: Windows 2003 VPN problmems.
    ... To manage VPN logon time, permissions, disconnect if idle for certain ... The clients actually connect however after about 10 minutes they ...
    (microsoft.public.win2000.ras_routing)
  • Re: D3 VPN Lost Connection
    ... Larry, I was thinking the same thing, except he said they would disconnect ... with IP address leases or the VPN. ... >> the user is idle for a moment, the connections times out and gets ...
    (comp.databases.pick)