Re: $100 reward for socket disconnection help



DennyOR wrote:

> Here's more details on my situation:
>
> I'm running Java 1.4.1 as an applet on the client side, under Windows 98,
> with a DSL connection through a Linksys Wireless-B Router. In test mode,
> after my applet makes a socket connection to my server application, it
> listens for intermittent notifications from the server to know that the
> client-server connection still exists, and if the notifications stop, it
> loops through attempts to make a new connection to the server, and when a
> new connection is made it goes back to listening for the intermittent
> notifications from the server.
>
> Fairly frequently, about once an hour, the client-server connection is
lost.
> This is probably due to some issue with the router, because if I remove
the
> router, client-server disconnects while I run my application are very
rare.
> (A search on "BEFW11S4", my router model number, and "disconnection" gets
a
> lot of hits.)
>
> Running AOL Instant Messenger (IM) while running my test application has
no
> effect on the disconnection rate of my application, but if IM is running,
IM
> disconnects at the same time my application does ("AOL Instant Messenger
> Error: Connection lost. Check your internet connection").
>
> After disconnect my client starts trying to make a new connection with my
> server. It always succeeds in reconnecting, sometimes within a minute but
> often taking up to 30 minutes. Each time it fails to make a new connection
> the IOException message is "java.net.ConnectException: Connection timed
out:
> connect".
>
> Interestingly, if I re-start IM (click on "Sign On") while my application
is
> still trying to reconnect, IM is always able to immediately reconnect, and
> right after IM reconnects my application always immediately reconnects.
>
> The fact that my application and IM are tightly coupled in both disconnect
> and reconnect behavior indicates that my problem has nothing to do with my
> server. It's some sort of local client issue.
>
> I don't know exactly what the problem is with my router, but since other
> people may be using the same router or another with a similar problem, I'd
> like my application to be able to recover gracefully from these
disconnects.
> A thirty minute wait for reconnection is not graceful, nor is asking my
> application users to start up IM anytime my application disconnects.
>
> IM is doing something that my applet isn't doing to reconnect to its
server
> that seems to break down some barrier in my local client, and once that
> barrier is broken then my applet can also reconnect. Perhaps IM is
accessing
> some system resource that's not available in the java virtual machine, but
> more likely I'm overlooking something.
>
> The $100 reward will go to any suggestion that helps me understand and
deal
> with this problem, including the suggestions that have already been made
> when I get a chance to do some more testing. Thanks.
>
> Denny

At the time your application has lost connection and is attempting to
reconnect, what does the system say about the status of the network?

If the network is not up, and you start AOL IM does it bring up the network?

My guess is that AOL IM is capable of starting the network if it's down.
Your application does not do this while it's attempting to reconnect.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
.



Relevant Pages

  • Re: $100 reward for socket disconnection help
    ... I'm running Java 1.4.1 as an applet on the client side, under Windows 98, ... with a DSL connection through a Linksys Wireless-B Router. ... client-server disconnects while I run my application are very rare. ... still trying to reconnect, IM is always able to immediately reconnect, and ...
    (comp.lang.java.programmer)
  • Re: Able to detect disconnect, except one weird case...
    ... Only problem is when my client sits silent with no data being ... at that point the server knows the connection has ... FD_READ) like it does when the server disconnects. ... On other projects I've sent keep-alive packets (just small packets ...
    (microsoft.public.win32.programmer.networks)
  • Re: Mac suddenly disconnected from Windows 2003 Server
    ... Connections can be slept on a per connection basis - the Mac client may or ... monitor tool on the server and looking at the time stamps of the traffic ... >> Most likely the client is sleeping the connection and the server> disconnects>> after not hearing from the client for 2 minutes. ...
    (microsoft.public.win2000.macintosh)
  • Re: Detecting socket disconnection (Async?)
    ... connection or when the connection is lost due to a network error (connect ... When the client explicitly closes the connection, your recieve callback will ... disconnects, but all of them I have seen are Synchronous. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Security problem in Terminal Server Windows 2003
    ... You can disable it for all TS users of the server via group policy, or on each client on a per connection basis. ... uncheck "Reconnect if connection is dropped" on the Experience tab. ...
    (microsoft.public.windows.terminal_services)