Click here to Skip to main content
15,441,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

Out of interest when creating a socket for a client connection the a java server, why after a few minutes the socket will no longer work after no activity. Is there a special way to prevent connections from be dropped or port numbers changing ?
Posted

1 solution

I would Google for[^].
 
Share this answer
 
Comments
ghost_ 10-Nov-14 11:36am    
So you think keep alive method would keep the connection from been dropped ?
CPallini 10-Nov-14 11:47am    
Well, the hint is in the name.
ghost_ 10-Nov-14 11:50am    
Thank you will give it a try and let you know how it goes...
Xiao Ling 11-Nov-14 3:21am    
Did you set socket timeout?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900