修复反向代理sticky调度算法无法生效的Bug

This commit is contained in:
GoEdgeLab
2021-09-20 09:55:42 +08:00
parent 8e76e53283
commit 2d3b6c659e

View File

@@ -33,7 +33,9 @@ func (this *HTTPRequest) doReverseProxy() {
// 源站
requestCall := shared.NewRequestCall()
requestCall.Request = this.RawReq
origin := this.reverseProxy.NextOrigin(requestCall)
requestCall.CallResponseCallbacks(this.writer)
if origin == nil {
err := errors.New(this.requestPath() + ": no available backends for reverse proxy")
remotelogs.Error("HTTP_REQUEST_REVERSE_PROXY", err.Error())