QMux TCP shutdown can withhold FIN after a macOS peer half-close

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

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

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

評価

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

調査の方向性

Start with rs/qmux/src/socket.rs at TcpStats::shutdown and the driver shutdown call in rs/qmux/src/driver.rs. Reproduce the retained stats handle and peer half-close on macOS, then check that Linux still uses two-way shutdown and admits bytes into TCP_INFO during linger. Done means the macOS peer receives EOF with the duplicate handle retained while Linux behavior is preserved.

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

説明

quest

A macOS TCP loopback probe reproduced a shutdown failure after the peer sent FIN. With a duplicated server descriptor open, shutdown(SHUT_RDWR) failed and the peer was still waiting for EOF. shutdown(SHUT_WR) delivered EOF while the duplicate remained open.

QMux calls TcpStats::shutdown when its driver ends. It drops its own reference, and callers can retain a copy of the stats handle. On macOS that copy can keep the peer waiting if two-way shutdown failed. Shutdown · Driver

Exercise a peer half-close with a retained stats handle on macOS. Preserve Linux two-way shutdown: a separate loopback probe showed that write-only shutdown admitted bytes into TCP_INFO during linger.

(Written by GPT-6.2 Sol with xhigh)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
822

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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