websocket RFC 是否建议服务器进入时间等待状态?

问题描述

在 rfc6455 https://datatracker.ietf.org/doc/html/rfc6455#section-5.5.1 的 5.5.1 节中,它说:

The server MUST close the underlying TCP connection immediately;
the client SHOULD wait for the server to close the connection

这是否意味着服务器应该开始关闭 TCP 连接(通过首先发送 FIN 数据包)并最终进入“TIME WAIT”状态?但是为什么要这样设计呢?我认为客户端 TIME WAIT 始终是最佳做法!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)