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: