我想深入了解 websocket 中的握手超時。在此之前,我從我的 websocket 收到此錯誤,并將HandshakeTimeout其設置為10 seconds。websocket: close 1006 (abnormal closure): unexpected EOF我試圖找到如何解決這個錯誤,很多組都說增加HandshakeTimeout.但是,我的想法不同,想要像這樣設置配置 websocket:ws := websocket.Upgrader{? ? ReadBufferSize:? ?0,? ? WriteBufferSize:? 0,? ? HandshakeTimeout: 0,? ? CheckOrigin: func(r *nethttp.Request) bool {? ? ? ? return true? ? },}我的問題是。HandshakeTimeout如果我設置為,是否會出現任何漏洞問題或負面問題0?我正在使用gorilla在我的代碼中設置 websocket。
- 1 回答
- 0 關注
- 132 瀏覽
添加回答
舉報
0/150
提交
取消