AtomVM
AtomVM copied to clipboard
`gen_tcp:connect/3` does not honor optional timeout value
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.