Websocket也支持失败自动重试

This commit is contained in:
GoEdgeLab
2022-09-16 09:37:49 +08:00
parent 031d3c0201
commit 1d21601228
2 changed files with 8 additions and 3 deletions

View File

@@ -240,7 +240,7 @@ func (this *HTTPRequest) doOriginRequest(failedOriginIds []int64, failedLnNodeId
// 判断是否为Websocket请求
if this.RawReq.Header.Get("Upgrade") == "websocket" {
this.doWebsocket(requestHost)
shouldRetry = this.doWebsocket(requestHost, isLastRetry)
return
}