Re: $100 reward for socket disconnection help
- From: Lee Ryman <leeryman@xxxxxxxxxxx>
- Date: Fri, 13 May 2005 20:17:08 +1000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Denny,
Could I suggest that you run Ethereal ( http://www.ethereal.com/ ) to
determine if the problem does indeed lies with a bug in the routers NAT
firmware or a misunderstanding of what is occurring in the TCP/IP stack
(Note that Ethereal needs the Pcap packet capture drivers installed,
they are available from the ethereal site).
Although the symptoms point the finger at the router, problems like
these can often originate back to things like connections sitting in the
FIN_WAIT_x states on one of the machines, especially when you mention
things like it rectifying itself after a number of minutes. Im not
saying it is, but when you have a tricky situation like this its often
helpful to definitively isolate the problem. It could indeed be a bug in
the router's NAT firmware that is somehow being jolted back alive by a
UPnP request from the AOL app.
It would be worthwhile running Ethereal on both machines during a
connection attempt, and setting up an appropriate capture filter to only
catch those packets from/to the client and server, and possibly the AOL
connection attempts as well. That way you can get more information about
what is actually occurring on the wire to trigger the reconnection (or
lack-thereof).
Points to consider (not sure how much you understand TCP/IP. Please
ignore me if any of this is blatantly obvious to you)...
*) Is your applet attempting to connect using the same outbound port
each time?
*) When detecting the connection timeout (via the exception), are you
still forcably closing your socket in a "finnally" block to ensure the
TCP stack is left in the right state.
*) I had something else in mind but forgot. Will follow-up when I
remember :)
(BTW, I don't expect any reward for this suggestion, I guess it should
be you would call "common knowledge")
Kind regards,
Lee
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iEYEARECAAYFAkKEfqQACgkQhbcFpQga0LBYkwCgnXN0cOgdZXQd89wivI4TKsno
e5UAniovZEGY7VBiL/IHjBT3U4qui9Ga
=HCan
-----END PGP SIGNATURE-----
.
- Follow-Ups:
- Re: $100 reward for socket disconnection help
- From: Chris Uppal
- Re: $100 reward for socket disconnection help
- References:
- Re: $100 reward for socket disconnection help
- From: DennyOR
- Re: $100 reward for socket disconnection help
- Prev by Date: JarFile to Javadoc
- Next by Date: Re: Applets and reading files...
- Previous by thread: Re: $100 reward for socket disconnection help
- Next by thread: Re: $100 reward for socket disconnection help
- Index(es):
Relevant Pages
|