socket
文章平均质量分 69
Socket 编程
Dongguabai
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java server 参数_java serversocket参数详解
ServerSocket有以下3个选项。 SO_TIMEOUT:表示等待客户连接的超时时间。 SO_REUSEADDR:表示是否允许重用服务器所绑定的地址。 SO_RCVBUF:表示接收数据的缓冲区的大小。 SO_TIMEOUT : 表示接收数据时的等待超时时间 。 单位为毫秒,默认值为0 , 表示永远等待。 设置该选项:public void setSoTimeOut(int timeout) throws SocketException 读取该选项:public int getSoTime.转载 2021-04-13 17:07:39 · 710 阅读 · 0 评论 -
java settcpnodelay_TCP连接中启用和禁用TCP_NODELAY有什么影响?
参考tcp(7): TCP protocol TCP_NODELAY If set, disable the Nagle algorithm. This means that segments are always sent as soon as possible, even if there is only a small amount of data. When not set, data is buffered until there is a sufficient amount to send转载 2021-04-11 17:36:31 · 822 阅读 · 0 评论 -
Socket 基础之超时时间
平时经常会听到“连接超时”、“Socket 超时”,那么到底是什么超时呢。以我们目前内部使用的调度任务为例,有时候会收到这样的调度异常邮件: 在 xxxx,Exception to request execution plan:java.net.SocketTimeoutException:connect timed out 有时候会收到这样的: 在 xxxx,Exception to request execution plan:java.net.SocketTimeoutException:Read原创 2020-05-23 00:36:12 · 11181 阅读 · 0 评论
分享