Is there a maximum TCP connection duration or is it okey to keep such a TCP connection open for several days? (Of course with keep alive packets)
And especially: Is there such a connection duration limit in Java's TCP Socket and SocketServer?
Is there a maximum TCP connection duration
Not unless a router enforces one, but they do.
or is it okey to keep such a TCP connection open for several days? (Of course with keep alive packets)
You can try. Good luck. It isn't likely to succeed, and you shouldn't rely on it.
And especially: Is there such a connection duration limit in Java's TCP Socket and SocketServer?
No.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.