fix: 停机排空计入正在发送的帧并为断开预留时间
This commit is contained in:
@@ -118,6 +118,8 @@ func (st *connState) sendOne(b *Broker, item downItem) {
|
||||
st.signalSent(item)
|
||||
return
|
||||
}
|
||||
st.inSend.Add(1)
|
||||
defer st.inSend.Add(-1)
|
||||
large := len(item.payload) > largeFrameBytes
|
||||
if large {
|
||||
if err := b.acquireLarge(context.Background()); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user