Websocket也支持失败自动重试

This commit is contained in:
刘祥超
2022-09-16 09:37:49 +08:00
parent 30bd66958c
commit c0f0ec43bb
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
}