mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
Merge pull request openziti/fabric#268 from openziti/tidy-close
Close send buffer when unrouted, since sends will no longer work
This commit is contained in:
@@ -261,6 +261,7 @@ func (self *Xgress) Unrouted() {
|
||||
// When we're unrouted, if end of circuit hasn't already arrived, give incoming/queued data
|
||||
// a chance to outflow before closing
|
||||
if !self.flags.IsSet(closedFlag) {
|
||||
self.payloadBuffer.Close()
|
||||
time.AfterFunc(self.Options.MaxCloseWait, self.Close)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user