alibaba/xquic

[Bug]: stream_read_notify may not be call

Open

#205 opened on Jul 8, 2022

 (0 comments) (1 reaction) (1 assignee)C (389 forks)github user discovery
:star_struck: someone working on ithelp wanted

Repository metrics

Stars
 (1,892 stars)
PR merge metrics
 (PR metrics pending)

Description

What happened?

xqc_stream_recv always calls xqc_stream_shutdown_read, so when a stream has received fin and then xqc_stream_recv does not consume all the data, the left data will never be notified to application.

Steps To Reproduce

Only call xqc_stream_recv once in stream_read_notify with a small buffer.

Relevant log output

No response

Contributor guide