fix: close stream adaptive gaps and switch notify to stario v0.1.1
- make stream fast path honor adaptive soft payload limits end-to-end - split oversized fast-stream payloads into sequential frames before batching - use adaptive soft cap when encoding stream batch payloads - move timeout-like error detection into production code for adaptive tx - tune notify FrameReader read size explicitly to avoid throughput regression - drop local stario replace and depend on released b612.me/stario v0.1.1
This commit is contained in:
@@ -433,6 +433,21 @@ func (c *ClientCommon) readMessageLoop(stopCtx context.Context, conn net.Conn, q
|
||||
}
|
||||
binding := newTransportBinding(conn, queue)
|
||||
dispatcher := c.clientInboundDispatcherSnapshot()
|
||||
if conn != nil && queue != nil && !isPacketTransportConn(conn) {
|
||||
reader := newTransportFrameReader(conn, queue)
|
||||
for {
|
||||
select {
|
||||
case <-stopCtx.Done():
|
||||
c.closeClientTransportBinding(binding)
|
||||
return
|
||||
default:
|
||||
}
|
||||
payload, release, err := c.readTransportPayloadPooled(conn, reader)
|
||||
if !c.handleTransportPayloadReadResultWithSession(stopCtx, binding, payload, release, err, epoch, dispatcher) {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
buf := streamReadBuffer()
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user