Skip to content

Instantly share code, notes, and snippets.

View omz13's full-sized avatar
🔒
stealth project mode; may be slow to respond

David Somers omz13

🔒
stealth project mode; may be slow to respond
View GitHub Profile
@omz13
omz13 / quic-go-19-20-13.patch
Created November 18, 2022 18:28
an experimental patch for quic-go per issue #3603
diff --git a/http3/server.go b/http3/server.go
index 0455895ec648342a88264b462eee66cb0e49b778..0c1c792c03ef78e8f43e184af39dcb29a8b0b915 100644
--- a/http3/server.go
+++ b/http3/server.go
@@ -583,6 +583,7 @@ func (s *Server) handleRequest(conn quic.Connection, str quic.Stream, decoder *q
ctx := str.Context()
ctx = context.WithValue(ctx, ServerContextKey, s)
ctx = context.WithValue(ctx, http.LocalAddrContextKey, conn.LocalAddr())
+ ctx = context.WithValue(ctx, quic.ConnectionTracingKey, conn.Context().Value(quic.ConnectionTracingKey))
req = req.WithContext(ctx)
@omz13
omz13 / build_caddy.sh
Created September 15, 2017 13:38 — forked from jaymecd/build_caddy.sh
Build Caddy w/ plugins from sources
#!/usr/bin/env bash
#
# Author: @nikolaizujev
#
# Big respect to @mholt6 for making Caddy
#
# This script is based on:
# - https://www.calhoun.io/building-caddy-server-from-source/
# - https://g.liams.io/liam/simple-build-caddy.git
#

Keybase proof

I hereby claim:

  • I am omz13 on github.
  • I am omz13 (https://keybase.io/omz13) on keybase.
  • I have a public key ASA53cfHIthZPaWwnYO80vw4UoqSxXub5yE1ovmyiI0ZTgo

To claim this, I am signing this object: