JuliaWeb / HTTP.jl

HTTP for Julia
https://juliaweb.github.io/HTTP.jl/stable/
Other
626 stars 177 forks source link

Tune websocket performance #1177

Closed lassepe closed 1 month ago

lassepe commented 1 month ago

This PR tunes the performance of websockets by defaulting to TCP_NODELAY and TCP_QUICKACK.

Resolves #1140 Resolves #1124

lassepe commented 1 month ago

@quinnj I am not sure i there is a better place to apply this fix. It feels a bit arbitrary to do this in the upgrade function. Alternatively, we could move this into the constructor of the websocket or maybe you even have suggestions for a "higher-up" place?

quinnj commented 1 month ago

Thanks @lassepe! LGTM