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]: unidirectional stream state not right? #232

Open Luffbee opened 1 year ago

Luffbee commented 1 year ago

What happened?

I see the latest release support unidirectional stream now, but the send/recv states are still init like bidirectional stream, which is not right. Unidirectional stream can only send/recv, so its recv/send state should be init as DataRead/DataRecvd, and this will affect stream closing.

Steps To Reproduce

I only review the code, and I met this problem in my custom version.

Relevant log output

No response