fxleyu / precious-deposits

This repository is used for shell、Git、and etc. The taotie(饕餮) likes to eat and drink.
1 stars 0 forks source link

[网络] 关于 Socket 读超时问题的思维发散 #31

Open fxleyu opened 6 years ago

fxleyu commented 6 years ago

背景

监控数据低于阈值,查看添加监控的代码,其可能情况为超时导致。查看相关 log,其为 java.net.SocketTimeoutException: Read timed out。在这里,想彻底搞明白 Socket 超时相关的内容。

学习内容

fxleyu commented 6 years ago

TCP 定时器

https://www.jianshu.com/p/9769da1071d9 https://www.geeksforgeeks.org/computer-network-tcp-timers/ https://learningnetwork.cisco.com/thread/47664 http://www.pcvr.nl/tcpip/tcp_time.htm https://blog.csdn.net/hyman_yx/article/details/52086389 https://blog.csdn.net/xifeijian/article/details/44261821 https://www.zhihu.com/question/21609463 https://stackoverflow.com/questions/2735883/relation-between-http-keep-alive-duration-and-tcp-timeout-duration

fxleyu commented 6 years ago

HTTP 超时时间