D
DennyOR
I'm developing an application that uses java sockets for client-server
communication. Every now and then, open socket connections between the
client and server are lost. This is a client side problem, which may be
related to using a Linksys router. When my client notices that it's not
receiving communications from the server, it begins attempting to create a
new Socket() connection. Attempts to connect with a new Socket() fail
(IOException) for up to 30 minutes until finally a new connection is made,
at which point client-server communication continues normally until the
connection is lost again.
However, if while my client is trying to reconnect to the server, I start up
AOL instant messenger, the next attempt by my client to create a new
Socket() connection to the server always succeeds. (By the way, if instant
messenger is running when my application is running, they both disconnect
from their servers at the same time.)
I will give the $100 reward to anyone who can give an explanation or a
suggestion that would allow me to programmatically reconnect immediately to
the server after a disconnection occurs (without having to start up AOL
instant messenger to grease the way) or otherwise solve this problem.
Denny
communication. Every now and then, open socket connections between the
client and server are lost. This is a client side problem, which may be
related to using a Linksys router. When my client notices that it's not
receiving communications from the server, it begins attempting to create a
new Socket() connection. Attempts to connect with a new Socket() fail
(IOException) for up to 30 minutes until finally a new connection is made,
at which point client-server communication continues normally until the
connection is lost again.
However, if while my client is trying to reconnect to the server, I start up
AOL instant messenger, the next attempt by my client to create a new
Socket() connection to the server always succeeds. (By the way, if instant
messenger is running when my application is running, they both disconnect
from their servers at the same time.)
I will give the $100 reward to anyone who can give an explanation or a
suggestion that would allow me to programmatically reconnect immediately to
the server after a disconnection occurs (without having to start up AOL
instant messenger to grease the way) or otherwise solve this problem.
Denny