MatrixAI / js-quic

QUIC Networking for TypeScript & JavaScript
https://matrixai.github.io/js-quic/
Apache License 2.0
13 stars 1 forks source link

Gracefully handle certain `QUICSocket.send` errors #89

Closed tegefaulkes closed 7 months ago

tegefaulkes commented 7 months ago

Description

This is take two of the previous PR at #86

This PR attempts to fix the problem with socket send errors not being handled properly when they're specific to the connection triggering the send. It also handles basic network dropouts.

The previous PR had some issues with platform specific behaviour with the send errors. The 3 different platforms gave 3 different error codes for invalid IP based on how the socket was bound.

Issues Fixed

Tasks

Final checklist

ghost commented 7 months ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/MatrixAI/js-quic/89/6b17763f/6b6249182d55cdaed7087f5d465b8ae71103a269.svg)](https://app.codesee.io/r/reviews?pr=89&src=https%3A%2F%2Fgithub.com%2FMatrixAI%2Fjs-quic) #### Legend CodeSee Map legend
tegefaulkes commented 7 months ago

There was mention of some odd behaviour when switching wifi networks which needs to be looked into. But I'll make a new issue for that.