mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 07:41:17 +00:00
Merge pull request openziti/fabric#309 from openziti/exit-rx-on-payload-fwd-fail
Exit xgress.rx if forward fails
This commit is contained in:
@@ -523,7 +523,11 @@ func (self *Xgress) rx() {
|
||||
remaining -= length
|
||||
payloads++
|
||||
|
||||
self.forwardPayload(payload)
|
||||
// if the payload buffer is closed, we can't forward any more data, so might as well exit the rx loop
|
||||
// The txer will still have a chance to flush any already received data
|
||||
if !self.forwardPayload(payload) {
|
||||
return
|
||||
}
|
||||
payloadLogger := log.WithFields(payload.GetLoggerFields())
|
||||
payloadLogger.Debugf("received [%s]", info.ByteCount(int64(n)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user