Skip to content

Commit

Permalink
servers: handle accept error ECONNABORTED (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin authored Jan 20, 2025
1 parent 6a90751 commit 2986663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Simplex/Messaging/Transport/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ safeAccept sock =
| otherwise -> logError err >> E.throwIO e
where
retryAccept = maybe False ((`elem` again) . Errno) errno
again = [eAGAIN, eNETDOWN, ePROTO, eNOPROTOOPT, eHOSTDOWN, eNONET, eHOSTUNREACH, eOPNOTSUPP, eNETUNREACH]
again = [eCONNABORTED, eAGAIN, eNETDOWN, ePROTO, eNOPROTOOPT, eHOSTDOWN, eNONET, eHOSTUNREACH, eOPNOTSUPP, eNETUNREACH]
err = "socket accept error: " <> tshow e <> maybe "" ((", errno=" <>) . tshow) errno
errno = ioe_errno e

Expand Down

0 comments on commit 2986663

Please sign in to comment.