Default timeouts are set to zero, instead of 30 seconds
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- php
- 領域
- testing-qa
調査の方向性
src/Codeception/Module/WebDriver.php の約362行目から始め、connection_timeout と request_timeout のデフォルト値がどのように変換されているかを確認してください。その動作を、文書化されている30秒のデフォルト値および php-webdriver の lib/Remote/RemoteWebDriver.php の約101行目にある null チェックと比較してください。省略されたタイムアウト設定がゼロになったり、curl_exec() が無期限に待機したりしなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hey Guys,
Here https://codeception.com/docs/modules/WebDriver Codeception claims, that default timeouts (connection_timeout and request_timeout) are 30 seconds. Because of the bug, I think they are set to 0 now, which makes curl_exec() later to wait indefinitely.
Check this code https://github.com/Codeception/module-webdriver/blob/master/src/Codeception/Module/WebDriver.php#L362
$this->connectionTimeoutInMs = $this->config['connection_timeout'] * 1000;
$this->requestTimeoutInMs = $this->config['request_timeout'] * 1000;
by default both values are null, but multipling null * 1000 results in 0, not null. Later here https://github.com/php-webdriver/php-webdriver/blob/main/lib/Remote/RemoteWebDriver.php#L101 it is strictly compared with null, but since the value is 0 it passes the condition and sets timeout to 0 which makes curl to wait indefinitely.
- 主要言語
- PHP
- スター
- 39
- フォーク
- 25
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeception/module-webdriver のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Codeception/module-webdriver#151 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Codeception/module-webdriver#135 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
Codeception/module-webdriver#130 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Codeception/module-webdriver#128 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
Codeception/module-webdriver#126 ·
Codeception/module-webdriver の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
a11y admissions.uiowa.edu needs grooming SiteImprove best practice
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Save States Menu オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
pluginsGLPI/datainjection#673 ·