• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java server disconnects inactive users after 5 minutes  RSS feed

 
Marvin Legend
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using this methodology for Java connection between client and server, I copied it from the internet, and helped me a lot, but the server allows the user to stay connected while it is sending messages, but if you stay an average time of 5 minutes without send anything it is disconnected, I need to increase that time to about 30 minutes or disable this disconnection for inactivity, anything you know to help me a lot.

Stay in Peace
thank you very much

Settings:
Netbeans 8.0
Windows Seven 64 Bits Ultimante


The following code:








 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Network routers also sometimes disconnect sessions that are not active. The easy way to overcome this is to send a 'keep-alive' handshake.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!