Skip to content

Commit 1787d76

Browse files
authored
fix(workaround): event loop block (#86)
1 parent c87c7eb commit 1787d76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/socket/duplex.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ func (dc *DuplexConnection) respondRequestResponse(receiving fragmentation.Heade
510510
sending.SubscribeWith(context.Background(), sub)
511511
return nil
512512
}
513+
513514
if err := scheduler.Elastic().Worker().Do(func() {
514515
sending.SubscribeWith(context.Background(), sub)
515516
}); err != nil {
@@ -866,7 +867,8 @@ func (dc *DuplexConnection) onFramePayload(frame core.BufferedFrame) error {
866867
switch handler := v.(type) {
867868
case *requestResponseCallback:
868869
handler.cache = next
869-
handler.sink.Success(next)
870+
// TODO: workaround for processor sink bug
871+
go handler.sink.Success(next)
870872
case requestStreamCallback:
871873
fg := h.Flag()
872874
isNext := fg.Check(core.FlagNext)

0 commit comments

Comments
 (0)