• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Java.net Socket Exception

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Sockets and Internet Protocols...
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic