Cannot create quic http/3 connection using URL
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
@jasnell
@nodejs
NodeJS versions: I did this in v27.0.0-pre, but it happens on any version that supports quic.
I noticed here this block of code, which was used as part of an example for an http/3 client:
const session = await connect('example.com:443', {
// ALPN defaults to 'h3'.
servername: 'example.com',
});
await session.opened;
If I try to call quic.connect(), whether I have the intention to use http/3 or raw quic, if I set the address parameter of the function to a URL instead of an IP address, it throws an error. But in the block of code I showed, it just uses 'example.com:443'. This can be a problem because some websites change the IP every few minutes, so then it would be mandatory to perform a DNS lookup.
Thank you
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
doc/api/quic.md の最小 HTTP/3 クライアント例から始め、quic.connect() に渡された IP アドレスと URL の違いを再現します。connect のエントリポイントと関連するテストを追跡し、URL 入力がサポートされているのか、それとも例が誤っているのかを判断します。コード変更を行う場合は報告された入力をカバレッジに含め、動作とドキュメントが一致すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- networking
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100