dflockd-client 1.8.3 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -113,6 +113,8 @@ without blocking. If the lock is contended, `enqueue()` returns `"queued"` and
113
113
  | `tls` | `tls.ConnectionOptions` | `undefined` | TLS options; pass `{}` for default system CA |
114
114
  | `auth` | `string` | `undefined` | Auth token for servers started with `--auth-token` |
115
115
  | `onLockLost` | `(key: string, token: string) => void` | `undefined` | Called when background lease renewal fails and the lock is lost |
116
+ | `connectTimeoutMs` | `number` | `undefined` | TCP connect timeout in milliseconds |
117
+ | `socketTimeoutMs` | `number` | `undefined` | Socket idle timeout in milliseconds |
116
118
 
117
119
  ### Multi-server sharding
118
120
 
@@ -242,6 +244,8 @@ try {
242
244
  | `tls` | `tls.ConnectionOptions` | `undefined` | TLS options; pass `{}` for default system CA |
243
245
  | `auth` | `string` | `undefined` | Auth token for servers started with `--auth-token` |
244
246
  | `onLockLost` | `(key: string, token: string) => void` | `undefined` | Called when background lease renewal fails and the slot is lost |
247
+ | `connectTimeoutMs` | `number` | `undefined` | TCP connect timeout in milliseconds |
248
+ | `socketTimeoutMs` | `number` | `undefined` | Socket idle timeout in milliseconds |
245
249
 
246
250
  ## Stats
247
251