原文: http://www.serverframework.com/asynchronousevents/2011/01/time-wait-and-its-design-implications-for-protocols-and-scalable-servers.html
reference: http://stackoverflow.com/questions/3757289/tcp-option-so-linger-zero-when-its-required
http://stackoverflow.com/questions/20467005/is-epollerr-without-epollhup-ok
http://stackoverflow.com/questions/16320039/getting-disconnection-notification-using-tcp-keep-alive-on-write-blocked-socket?rq=1
http://stackoverflow.com/questions/6437879/how-do-i-use-epollhup
http://tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/
http://stackoverflow.com/questions/7735618/tcp-rst-packet-details
http://developerweb.net/viewtopic.php?id=2941
http://en.wikipedia.org/wiki/Transmission_Control_Protocol
http://en.wikipedia.org/wiki/TCP_reset_attack
本文深入研究了TCP协议中关于TIME_WAIT状态及其对协议设计和可扩展服务器的影响,并讨论了SO_LINGER选项的作用及何时需要使用它。此外还涉及了如何在写阻塞套接字上使用TCP保活机制获取断开连接的通知,以及EPOLLHUP标志的用法等问题。
1200

被折叠的 条评论
为什么被折叠?



