AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

`gen_tcp:connect/3` does not honor optional timeout value

Open UncleGrumpy opened this issue 3 months ago • 0 comments

When using gen_tcp:connect/3 with a timeout option (i.e. [{timout, 5000}]) the timout is not honored. For example when using a hostname for the Address and the {inet_backend, socket} option the connection never completes (see issue #1839, even with a connection failure the connection should still timeout in the specified time.

This behavior is observed on both generic_unix and ESP32 platforms and likely affects RP2 platform as well - but this is untested so far.

UncleGrumpy avatar Oct 02 '25 04:10 UncleGrumpy