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

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

python - Redis Error 8 connecting localhost:6379. nodename nor servname provided, or not known -