Give up a connect after connectTimeout instead of waiting the OS out
Mirror / push (push) Successful in 4s
Test / lint (pull_request) Successful in 21s
Test / test (18) (pull_request) Successful in 22s
Test / test (20) (pull_request) Successful in 18s
Test / test (22) (pull_request) Successful in 18s
Test / test (24) (pull_request) Successful in 19s
Test / test (26) (pull_request) Successful in 27s

This commit is contained in:
2026-09-20 00:42:09 +02:00
parent d874448273
commit 17447bbe3a
8 changed files with 175 additions and 33 deletions
+9
View File
@@ -0,0 +1,9 @@
# Changelog
What changed for someone using `@larvit/smpp`, newest first.
## Unreleased
- `client()` takes `connectTimeout`, which gives up on a connect the SMSC never completes — the TLS
handshake included — and reports it as an ordinary connect failure, so `reconnect` retries it on
its usual backoff. Leave it out and the wait is the operating system's, as before.