Live data from Hacker News

How We Improved Reliability of our WebSocket Connections

making.close.com

1–10 of 19 posts

Re: How We Improved Reliability of our WebSocket Connections

#4
> The (sadly all too) common approach to rarely occurring bugs & edge cases: Pretend like the problem doesn't exist. Blame it on faulty networking, solar flares, etc.

How to tell if someone hasn't been working with a piece of software in production yet? They've never blamed a bug on cosmic radiation yet :D

Re: How We Improved Reliability of our WebSocket Connections

#5

> The (sadly all too) common approach to rarely occurring bugs & edge cases: Pretend like the problem doesn't exist. Blame it on faulty networking, solar flares, etc. How to tell if someone hasn't been working with a piece of software in production yet? They've never blamed a bug on cosmic radiation yet :D

Remember to always blame the user… or the universe!

Re: How We Improved Reliability of our WebSocket Connections

#7

Good to know that WebSocket API is broken by design. Thanks W3C! https://www.w3.org/Bugs/Public/show_bug.cgi?id=13104

Yes! I was both surprised and confused when I saw this. Unless I'm missing something, it means that every application implementing WebSockets has to reinvent the wheel, creating their client-side ping/pong handler using Data Frames since browsers don't automatically send nor expose an API for sending/acting on Control Frames.

Re: How We Improved Reliability of our WebSocket Connections

#8

> The (sadly all too) common approach to rarely occurring bugs & edge cases: Pretend like the problem doesn't exist. Blame it on faulty networking, solar flares, etc. How to tell if someone hasn't been working with a piece of software in production yet? They've never blamed a bug on cosmic radiation yet :D

Remember to always blame the user… or the universe!

Relevant: https://www.youtube-nocookie.com/embed/lKXe3HUG2l4, The mess we are in (2014), Joe Armstrong

Re: How We Improved Reliability of our WebSocket Connections

#10

Good to know that WebSocket API is broken by design. Thanks W3C! https://www.w3.org/Bugs/Public/show_bug.cgi?id=13104

This is what confused me. The discussion made sense to leave it up to the browser to implement, but I can't understand why they didn't require it in the browser WebSocket implementation — they even suggested it and then forgot about it.
Post reply on HN