Skip to content

Commit ec33586

Browse files
committed
fix readDeadline error report
1 parent 5787361 commit ec33586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/quic/stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func (mqs MsQuicStream) SetReadDeadline(ttl time.Time) error {
409409
} else {
410410
mqs.state.readDeadlineContext = mqs.ctx
411411
}
412-
return nil
412+
return mqs.state.readDeadlineContext.Err()
413413
}
414414

415415
func (mqs MsQuicStream) SetWriteDeadline(ttl time.Time) error {

0 commit comments

Comments
 (0)