You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
在阅读shadowsocks-server/server.go中的源码时,发现函数 func handleConnection(conn *ss.Conn, port string) 中第一个defer函数中关于连接的关闭判断逻辑疑似出现笔误?若调用getRequest(conn)处理请求出错,则handleConnection( )函数终止返回,此时根据现有defer函数中的逻辑,不会释放tcp连接,使得服务器的socket一直处于 CLOSE_WAIT 状态,另外紧随其后的 host主机域名的处理也存在同样的问题。
请关注该文件https://github.com/shadowsocks/shadowsocks-go/blob/master/cmd/shadowsocks-server/server.go 中第132行、140行、146行、159行、162行、179行。
The text was updated successfully, but these errors were encountered: