bakape / shamichan

anonymous realtime imageboard focused on high performance and transparent moderation
Other
434 stars 74 forks source link

sse: stop timeouts closing the connection #1284

Closed Kamuso closed 2 years ago

Kamuso commented 2 years ago

Fucking Cloudflare. It closes the sse connection with a 524 status after 100 seconds of no activity, which should be fixed with this.

bakape commented 2 years ago

You sure about this? We should already have pings to prevent this. I added them to combat this IIRC.

Kamuso commented 2 years ago

You can check it yourself. Open a reports page and after 100 seconds you'll get a 524 error from /api/sse Are you talking about the websocket pings? Reports and the other static pages don't have any websocket code.

bakape commented 2 years ago

Yeah, I'm being dumb here.