AikidoSec-safe-chain/packages/safe-chain
Thomas Becker 878e549211 fix: use true connection timeout instead of idle timeout
socket.setTimeout() is an idle timeout in Node.js (node docs)[https://nodejs.org/api/net.html#socketsettimeouttimeout-callback]
- it fires after N ms of inactivity, not N ms after the connection attempt. This
caused false timeout errors after successful data transfers when connections
went idle for longer than the timeout period.

Replace with JS setTimeout() that:
- Fires N ms after connection attempt starts
- Gets cleared on successful connect
- Return 504 Gateway Timeout (more accurate than 502)

Also adds proper close event handlers for socket cleanup.

Fixes #228
2025-12-18 12:53:49 +01:00
..
bin Skeleton 2025-12-15 15:06:00 +01:00
src fix: use true connection timeout instead of idle timeout 2025-12-18 12:53:49 +01:00
.npmignore Modify release process 2025-09-05 12:01:29 +02:00
package.json Merge branch 'main' into feature/poetry-2 2025-12-03 07:41:52 -08:00
tsconfig.json Type check safe-chain package 2025-11-01 13:06:06 +01:00