Loading src/quic.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -7076,7 +7076,7 @@ void quic::processClientHello(const std::vector<uint8_t>& msg) { uint8_t proto_len = msg[alpn_off++]; if (alpn_off + proto_len <= alpn_end && alpn_off + proto_len <= offset + ext_data_len) { std::string proto(msg.begin() + alpn_off, msg.begin() + alpn_off + proto_len); _selected_alpn = selectStreamProtocol(std::string proto) { return -1; }; _selected_alpn = selectStreamProtocol(std::string(proto)); alpn_off += proto_len; } } Loading src/socket.h +1 −1 Original line number Diff line number Diff line Loading @@ -874,7 +874,7 @@ namespace netplus { bool isStreamComplete(uint64_t stream_id) const; bool isStreamReset(uint64_t stream_id) const; virtual std::string selectStreamProtocol(std::string proto) { return -1; } virtual std::string selectStreamProtocol(std::string proto) { return ""; } // Abort a stream abnormally (RFC 9000 §19.4 RESET_STREAM). Use this // instead of sendStreamData(..., fin=true) when the body falls short Loading Loading
src/quic.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -7076,7 +7076,7 @@ void quic::processClientHello(const std::vector<uint8_t>& msg) { uint8_t proto_len = msg[alpn_off++]; if (alpn_off + proto_len <= alpn_end && alpn_off + proto_len <= offset + ext_data_len) { std::string proto(msg.begin() + alpn_off, msg.begin() + alpn_off + proto_len); _selected_alpn = selectStreamProtocol(std::string proto) { return -1; }; _selected_alpn = selectStreamProtocol(std::string(proto)); alpn_off += proto_len; } } Loading
src/socket.h +1 −1 Original line number Diff line number Diff line Loading @@ -874,7 +874,7 @@ namespace netplus { bool isStreamComplete(uint64_t stream_id) const; bool isStreamReset(uint64_t stream_id) const; virtual std::string selectStreamProtocol(std::string proto) { return -1; } virtual std::string selectStreamProtocol(std::string proto) { return ""; } // Abort a stream abnormally (RFC 9000 §19.4 RESET_STREAM). Use this // instead of sendStreamData(..., fin=true) when the body falls short Loading