Skip to content

Commit 2dc84ca

Browse files
committed
fix: EHOSTUNREACH error on send is dispatched back to the connection calling send
1 parent 11b9a4f commit 2dc84ca

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/QUICClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ class QUICClient {
513513
// Thrown due to invalid arguments on Win but also for network dropouts on all platforms
514514
// Falls through
515515
case 'ENETUNREACH':
516+
// Thrown when no route to the host is available.
517+
// Falls through
518+
case 'EHOSTUNREACH':
516519
{
517520
this.dispatchEvent(
518521
new events.EventQUICClientErrorSend(

src/QUICServer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ class QUICServer {
207207
// Thrown due to invalid arguments on Win but also for network dropouts on all platforms
208208
// Falls through
209209
case 'ENETUNREACH':
210+
// Thrown when no route to the host is available.
211+
// Falls through
212+
case 'EHOSTUNREACH':
210213
{
211214
this.dispatchEvent(
212215
new events.EventQUICClientErrorSend(

0 commit comments

Comments
 (0)