java - Timeout for active socket connection? -


how can specify timeout on active java.net.socket connection? don't mean timeout of .accept() blocks process. i'd set timeout starts count when accept method takes connection, until client connection closed/output stream returned.

is possible?

yes. possible socket.setsotimeout()


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -