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:
@@ -320,7 +320,7 @@ func TestSetClientSessionRuntimeStopsOldBindingWorkersOnReattach(t *testing.T) {
|
||||
defer oldLeft.Close()
|
||||
defer oldRight.Close()
|
||||
oldBinding := newTransportBinding(oldLeft, queue)
|
||||
oldSender := oldBinding.bulkBatchSenderSnapshot()
|
||||
oldSender := oldBinding.clientBulkBatchSenderSnapshot(client)
|
||||
|
||||
client.setClientSessionRuntime(&clientSessionRuntime{
|
||||
transport: oldBinding,
|
||||
@@ -345,7 +345,7 @@ func TestSetClientSessionRuntimeStopsOldBindingWorkersOnReattach(t *testing.T) {
|
||||
epoch: 2,
|
||||
})
|
||||
|
||||
err := oldSender.submit(context.Background(), []byte("payload"))
|
||||
err := oldSender.submitData(context.Background(), 1, 1, bulkFastPathVersionV1, []byte("payload"))
|
||||
if err != errTransportDetached {
|
||||
t.Fatalf("old sender submit after reattach = %v, want %v", err, errTransportDetached)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user