alibaba / xquic

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

[Bug]: xqc_stream_close should check DATA_RECVD state #283

Open Luffbee opened 1 year ago

Luffbee commented 1 year ago

What happened?

xqc_stream_close after DATA_RECVD state may cause error: https://github.com/alibaba/xquic/blob/917ac4a9bfaf4bf5293b1413681b66c36a9d97ad/src/transport/xqc_stream.c#L619

Steps To Reproduce

call xqc_stream_close after DATA_RECVD state.

Relevant log output

No response