Skip to content

Unconditionally set FlushInterval: -1 to avoid buffering responses#230

Closed
antifuchs wants to merge 1 commit intomainfrom
flush-immediately
Closed

Unconditionally set FlushInterval: -1 to avoid buffering responses#230
antifuchs wants to merge 1 commit intomainfrom
flush-immediately

Conversation

@antifuchs
Copy link
Collaborator

This PR tracks an experiment in throughput optimization.

I can measure a severe lack of throughput when retrieving large (fixed-size) resources through tsnsrv across long distances, and am beginning to suspect that the buffering that httputil.ReverseProxy does is not entirely great there.

@antifuchs
Copy link
Collaborator Author

This isn't it. transatlantic transfers reaching the upstream service's port over tailscale directly reaches up to 45MBit/s, while transfers using with tsnsrv in the middle top out at 12MBit/s.

@antifuchs antifuchs closed this Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant