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

オープン
#1,860 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
embedded-iot, erlang
領域
networking

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Erlang
スター
2.3k
フォーク
171
平均マージ
5日 11時間
マージ済み PR(30日)
19

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

atomvm/AtomVM のほかの issue

atomvm/AtomVM の issue をすべて見る

似ている issue

Networking の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。