Skip to content

Instantly share code, notes, and snippets.

@keepsimple1
keepsimple1 / chromium-patch-ios.diff
Last active January 16, 2020 21:04
Chromium cronet patch to support IEFT QUIC draft-24 in iOS
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)
@keepsimple1
keepsimple1 / chromium-quic-hint-ios.diff
Created January 23, 2020 19:40
Add a new API in cronet to allow setting QUIC hint after Cronet start
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 / 1.diff
Created November 4, 2020 05:10
A test case for quiche - send_after_shutdown
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 / quiche-0.6.0-p10-diff
Last active April 6, 2021 14:30
keepsimple1 quiche branch v0.6.0 tag v0.6.0-p10 diffs with baseline quiche 0.6.0
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 / mdns-sd-track-interface.diff
Created July 15, 2022 18:38
A patch to send mDNS outgoing messages based on interfaces and LAN segment
diff --git a/Cargo.toml b/Cargo.toml
index db11d7d..4f2febc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,8 +15,8 @@ async = ["flume/async"]
default = ["async"]
[dependencies]
-flume = { version = "0.10", default-features = false } # channel between threads
-if-addrs = "0.7" # get local IP addresses