alibaba / xquic

XQUIC Library released by Alibaba is a cross-platform implementation of QUIC and HTTP/3 protocol.
Apache License 2.0
1.65k stars 326 forks source link

[Bug]: stream_read_notify may not be call #205

Open Luffbee opened 2 years ago

Luffbee commented 2 years ago

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