alibaba / xquic

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

使用h2load测试xquic server失败,报错hostname is NULL #402

Open foxriver1025 opened 8 months ago

foxriver1025 commented 8 months ago

https://github.com/alibaba/xquic/blob/f3cab8816d4a68227df298df0cf9da90b18aae52/src/tls/xqc_tls.c#L1066 从抓取的报文来看,h2load没有填写SNI字段,导致server端进入xqc_ssl_cert_cb处理时报hostname为空的错误,此处server端是否应该做正确处理,比如允许没有SNI字段呢