Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java.net Socket Exception

 
Adam Berryl
Greenhorn
Posts: 5
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Sockets and Internet Protocols...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic