Skip to content

Instantly share code, notes, and snippets.

@keepsimple1
keepsimple1 / quiche-0.6.0-p10-diff
Last active Apr 6, 2021
keepsimple1 quiche branch v0.6.0 tag v0.6.0-p10 diffs with baseline quiche 0.6.0
View quiche-0.6.0-p10-diff
diff --git a/examples/http3-client.rs b/examples/http3-client.rs
index a93d67e..329c243 100644
--- a/examples/http3-client.rs
+++ b/examples/http3-client.rs
@@ -264,6 +264,16 @@ fn main() {
info!("GOAWAY id={}", goaway_id);
},
+ Ok((stream_id, quiche::h3::Event::StopSending { error_code })) => {
+ info!("StopSending received for stream {}, error_code {}",
@keepsimple1
keepsimple1 / 1.diff
Created Nov 4, 2020
A test case for quiche - send_after_shutdown
View 1.diff
diff --git a/src/lib.rs b/src/lib.rs
index 79c942b..227f07f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7746,6 +7746,65 @@ mod tests {
let result2 = pipe.server.dgram_recv(&mut buf);
assert_eq!(result2, Err(Error::Done));
}
+
+ #[test]
@keepsimple1
keepsimple1 / chromium-quic-hint-ios.diff
Created Jan 23, 2020
Add a new API in cronet to allow setting QUIC hint after Cronet start
View chromium-quic-hint-ios.diff
diff --git a/components/cronet/ios/Cronet.h b/components/cronet/ios/Cronet.h
index 05e294f238..2b4957387c 100644
--- a/components/cronet/ios/Cronet.h
+++ b/components/cronet/ios/Cronet.h
@@ -72,6 +72,10 @@ GRPC_SUPPORT_EXPORT
// host is invalid).
+ (BOOL)addQuicHint:(NSString*)host port:(int)port altPort:(int)altPort;
+// Sets QUIC hint after |start| is called.
+// It is not clear yet that if this hint will override existing hint(s) or not.
@keepsimple1
keepsimple1 / chromium-patch-ios.diff
Last active Jan 16, 2020
Chromium cronet patch to support IEFT QUIC draft-24 in iOS
View chromium-patch-ios.diff
diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc
index 317c0b4126..f839485599 100644
--- a/components/cronet/url_request_context_config.cc
+++ b/components/cronet/url_request_context_config.cc
@@ -218,8 +218,11 @@ quic::ParsedQuicVersionVector ParseQuicVersions(
auto it = all_supported_versions.begin();
while (it != all_supported_versions.end()) {
if (quic::QuicVersionToString(*it) == version) {
+ quic::HandshakeProtocol handshake_protocol = quic::PROTOCOL_QUIC_CRYPTO;
+ if (*it == quic::QUIC_VERSION_99)