Skip to content

Commit 5724ba2

Browse files
authored
Merge pull request #109 from MatrixAI/feature-eng-351-agent-start-fails-with-errorquicclientinternal-failed-to
handle `EHOSTUNREACH` error and dispatch back to connection calling send
2 parents 11b9a4f + 2dc84ca commit 5724ba2

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)