• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java.net Socket Exception  RSS feed

 
Adam Berryl
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
This is my first time, and i am looking for some answers in vain, nobody seems to know the answer, any suggestions would be greatly appreciated.

First; i am running a website and a DigiChatroom on windows XP machine, the problem i am having at the moment is: if i connect to the chatroom from the server or inside the network i can stay logged on for days if i need to, but if i connect from outside the network and i am idle for about 5 to 10 mins it will freeze the chatroom i can't type anything, but the chatroom window still open and then few minutes later the window will close and i get the following error message: "The connection to the DigiChat was unexpectedly broken. Java.net SocketException: Software caused connection Abort recv failed"

It was working fine before, I even disabled the firewalls on the server as well as the remote pc i was using, tried to identify where the problem is. same thing no changes, i heard that it could be a Tcp issue, but i don't understand what can cause this.

If anyone here can help me, it would be really appreciated

Thanking you in advance Java connection problems
 
Premil Jacob
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since there is no data transfer between the client and the server for long time periods the external network probably disconnects you after a certain period of inactivity, so you could try sending a keepalive packet after a specific time period say every 5 mins.
 
Adam Berryl
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello and thanks for your reply :-)

Hoe can I try sending a keepalive packet after a specific time?
But why do you think it suddenly started disconnecting users?

before we could stay connected for days if we wanted to, and now no more than 5 mins.

I really appreciate all your help :-)

Kind Regards
Adam
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Sockets and Internet Protocols...
 
Paul Santa Maria
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Connection abort" basically just means "Somebody pulled the plug".

It could be software or hardware. It could be at the sender, at the receiver, at your ISP, at your PC's internet connection. It literally could be anywhere. It could be any of a million reasons.

The first thing you need to try to do is find a more explicit error message. Check your system logs, check if your application (DigiChat) has it's own log, see if you can configure your Java runtime for more verbose error messages.

'Hope that helps .. PSM
 
Paul Santa Maria
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One other suggestion - you might want to load "Ethereal" (an open-source packet sniffer tool) and take a network trace of one of the "connection aborted".

You might pick up a lot of traffic, but the abort should be easy to recognize: it'll contain a TCP/IP "RST" ("Reset") instead of a "FIN". You can work backwards from there.

'Hope that helps .. PSM
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!