Did a quick pass to clean up the existing code, improve logging and error-reporting. We were also experiencing issues in production due to the usage of <&> that silently ignored exceptions in the reader loop (see this).
I also simplified the pinger to periodically publish ping requests (and for now just ignore ping responses).
It's been performing more reliably for us, so I thought I'd make a PR with these changes.
@clecat let me know what you think and apologies for a large diff!
Did a quick pass to clean up the existing code, improve logging and error-reporting. We were also experiencing issues in production due to the usage of
<&>
that silently ignored exceptions in the reader loop (see this).I also simplified the pinger to periodically publish ping requests (and for now just ignore ping responses).
It's been performing more reliably for us, so I thought I'd make a PR with these changes.
@clecat let me know what you think and apologies for a large diff!