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

Aperta
#1,860 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
embedded-iot, erlang
Ambito
networking

Direzione di ricerca

Read the gen_tcp:connect/3 handling for the {inet_backend, socket} option and compare it with issue #1839, which describes the hostname connection that does not complete. Reproduce with a timeout option on generic_unix or ESP32 and check whether the timeout is honored on connection failure; RP2 behavior is untested. Done means the connection times out within the specified interval on the affected platforms.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Erlang
Stelle
2.3k
Fork
171
Merge medio
5g 11h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di atomvm/AtomVM

Tutte le issue di atomvm/AtomVM

Issue simili

Altre issue su Networking

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.