nodejs / nodejs/node

http.request socketPath doesn't work on Windows

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

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

blocked http windows
主要言語
JavaScript
スター
122k
フォーク
37.3k
平均マージ
4日 2時間
マージ済み PR(30日)
283

説明

When calling http.request with the socketPath option on Windows in order to try to connect to a Unix domain socket, I get the following error message:

Error: connect ENOTSOCK C:\Users\User\AppData\Local\Temp\test.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)

There is native Unix Domain Sockets support in Windows 10 since two years, and the documentation at https://nodejs.org/api/http.html gives no indication that socketPath doesn't work on Windows, so I guess that this can be considered as an error.

  • Version: 12.16.3 (comes with Electron 10.1.0)
  • Platform: Windows 10, 64-bit, Build 18362.19h1_release.190318-1202
  • Subsystem: http
What steps will reproduce the bug?

Call http.request with the socketPath option on Windows. Specify a Unix domain socket path.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

http.request エントリポイントとその socketPath の処理から始め、net.js:1141:16 のスタック位置と、報告書に記載された Windows 10 での再現手順を使用します。Windows 上の Unix ドメインソケットで動作を検証します。完了条件は、文書化された socketPath の動作がサポート対象プラットフォームの動作と一致し、報告された ENOTSOCK エラーが解消されていることです。

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

評価

技術スタック
javascript, node.js
領域
networking
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

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

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