Live data from Hacker News

Show HN: A UDP to TCP proxy server for sending HTTP requests with zero latency

github.com

1–10 of 81 posts

Re: Show HN: A UDP to TCP proxy server for sending HTTP requests with zero latency

#2
WOW. This is such a fascinating project. (near) zero latencies are relatively hard to achieve especially over network connections. Will definitely try this out once I get the time. Oh and thanks for the various pre-built client libraries, will definitely come in useful.

Re: Show HN: A UDP to TCP proxy server for sending HTTP requests with zero latency

#6

Good stuff. Could use some asserts and checks for NULL here and there, but overall it's a nicely organized C code (and with proper bracing and indentation style :)). Always a pleasure to read through something like this.

Actually it has the wrong indentation style. Should be tabs left spaces right. I run tab width of 3 in my editors. To each their own, if you use tabs left of course.

Re: Show HN: A UDP to TCP proxy server for sending HTTP requests with zero latency

#7
post #2

WOW. This is such a fascinating project. (near) zero latencies are relatively hard to achieve especially over network connections. Will definitely try this out once I get the time. Oh and thanks for the various pre-built client libraries, will definitely come in useful.

Using the term "zero" is not the best choice. UDP packets have the same latency as TCP packets, you're just saving the handshake.

Games and VoIP still have latency, they're usually structured such the data loss and duplicate responses are normal and handled appropriately.

Re: Show HN: A UDP to TCP proxy server for sending HTTP requests with zero latency

#8
post #6

Good stuff. Could use some asserts and checks for NULL here and there, but overall it's a nicely organized C code (and with proper bracing and indentation style :)). Always a pleasure to read through something like this.

Actually it has the wrong indentation style. Should be tabs left spaces right. I run tab width of 3 in my editors. To each their own, if you use tabs left of course.

> I run tab width of 3 in my editors.

That’s certainly a strange choice, but you do you I guess…

Re: Show HN: A UDP to TCP proxy server for sending HTTP requests with zero latency

#9
Finding a use case for this would be tricky...

Quic already does this end to end.

The only use case I can think of might be gaming. If you had a HTTP/Websockets based game you wanted to cut latency down on you could have the FF proxy hosted near the game server.

Re: Show HN: A UDP to TCP proxy server for sending HTTP requests with zero latency

#10
I am reminded of statsd. I like this, though, as it generalizes more. Cool hack!

I wonder if it would be worth making this embeddable into an existing web framework for Python or Go, so that the existing service could receive UDP requests. Then again, that's what 0RTT is for so it might be a little wheel-reinventy.

Post reply on HN