Skip to content

Commit

Permalink
Update connection.go
Browse files Browse the repository at this point in the history
  • Loading branch information
elee1766 authored Oct 1, 2024
1 parent 4f012d4 commit d2be2b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layer4/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ var (
listenerCtxKey caddy.CtxKey = "listener"
)

const prefetchChunkSize = 1024
// the prefetch chunk size is a very large 2kb, in order to completely fetch the ~1.7kb X25519Kyber768Draft00 based TLS ClientHello. https://pq.cloudflareresearch.com/
const prefetchChunkSize = 2048

// MaxMatchingBytes is the amount of bytes that are at most prefetched during matching.
// This is probably most relevant for the http matcher since http requests do not have a size limit.
Expand Down

0 comments on commit d2be2b9

Please sign in to comment.