apache / apache/iotdb-client-rust

connect_timeout is applied per resolved address, not per endpoint

未關閉
#7 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Rust
星號
1
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

`connect_stream` applies `connect_timeout` **per resolved address**, not per endpoint, contradicting the doc comment ("TCP connect timeout per endpoint attempt"). A hostname resolving to two addresses multiplies every bound: measured 2.0011s for two blackhole addresses at a 1s timeout.

Fix: give `connect_stream` a single total deadline across all resolved addresses, so the timeout bounds the endpoint attempt as documented.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

先閱讀 connect_stream 及其 connect_timeout 文件註解,接著重現 issue 中描述的雙位址情況,以確認目前按位址計算的計時。完成的標準是所有已解析的位址共用一個總截止時間,讓端點嘗試維持在文件所述的逾時範圍內。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
databases
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。