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:
@@ -41,7 +41,7 @@ func BenchmarkRawTCPLocalhostThroughput(b *testing.B) {
|
||||
func benchmarkRawTCPLocalhostThroughput(b *testing.B, payloadSize int) {
|
||||
b.Helper()
|
||||
|
||||
listener, err := net.Listen("tcp", "127.0.0.1:0")
|
||||
listener, err := net.Listen("tcp", benchmarkTCPListenAddr(b))
|
||||
if err != nil {
|
||||
b.Fatalf("net.Listen failed: %v", err)
|
||||
}
|
||||
@@ -60,7 +60,7 @@ func benchmarkRawTCPLocalhostThroughput(b *testing.B, payloadSize int) {
|
||||
acceptCh <- conn
|
||||
}()
|
||||
|
||||
clientConn, err := net.Dial("tcp", listener.Addr().String())
|
||||
clientConn, err := net.Dial("tcp", benchmarkTCPDialAddr(b, listener.Addr().String()))
|
||||
if err != nil {
|
||||
b.Fatalf("net.Dial failed: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user