简体   繁体   English

一般最大的TCP连接持续时间还是用Java?

[英]Maximum TCP connection duration generally or in java?

Is there a maximum TCP connection duration or is it okey to keep such a TCP connection open for several days? 是否有最大的TCP连接持续时间,还是可以将这样的TCP连接保持几天开放? (Of course with keep alive packets) (当然还有保持活动的数据包)

And especially: Is there such a connection duration limit in Java's TCP Socket and SocketServer? 特别是:Java的TCP Socket和SocketServer中是否有这样的连接持续时间限制?

Is there a maximum TCP connection duration 是否有最大的TCP连接持续时间

Not unless a router enforces one, but they do. 除非路由器强制实施,否则它们不会。

or is it okey to keep such a TCP connection open for several days? 还是将这种TCP连接保持几天开放是可以的吗? (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? 特别是:Java的TCP Socket和SocketServer中是否有这样的连接持续时间限制?

No. 没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM