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 -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -