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:
@@ -308,7 +308,11 @@ func newBulkBenchmarkClient(tb testing.TB, network string, server bulkBenchmarkS
|
||||
tb.Fatalf("UseSignalReliabilityClient failed: %v", err)
|
||||
}
|
||||
}
|
||||
if err := client.Connect(network, server.addr); err != nil {
|
||||
dialAddr := server.addr
|
||||
if network == "tcp" {
|
||||
dialAddr = benchmarkTCPDialAddr(tb, dialAddr)
|
||||
}
|
||||
if err := client.Connect(network, dialAddr); err != nil {
|
||||
tb.Fatalf("client Connect failed: %v", err)
|
||||
}
|
||||
tb.Cleanup(func() {
|
||||
@@ -333,6 +337,9 @@ func bulkBenchmarkListenAddr(tb testing.TB, network string) string {
|
||||
case "unix":
|
||||
return filepath.Join(tb.TempDir(), "notify-bulk.sock")
|
||||
case "udp", "tcp":
|
||||
if network == "tcp" {
|
||||
return benchmarkTCPListenAddr(tb)
|
||||
}
|
||||
return "127.0.0.1:0"
|
||||
default:
|
||||
tb.Fatalf("unsupported benchmark network %q", network)
|
||||
|
||||
Reference in New Issue
Block a user