moq-rtmp: receive_follows_the_limit_after_the_stream_is_open fails on macOS (SO_RCVBUF autotuning)

Open Beginner friendly
#10,692 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
macos, rust

Research direction

Start in rs/moq-rtmp/src/receive.rs at line 253 and read receive_follows_the_limit_after_the_stream_is_open to see how it sets and checks SO_RCVBUF. Run the reproduction command from the issue on macOS, then compare how the test can account for Darwin's receive-buffer autotuning while still checking its intended limit. Done when the test passes on macOS and Linux and still detects a real limit regression.

Written by the indexing model from the issue text.

Description

moq-rtmp's receive::tests::receive_follows_the_limit_after_the_stream_is_open fails on macOS every run, at rs/moq-rtmp/src/receive.rs:253:

assertion `left == right` failed
  left: 294080
 right: 32768

The test sets SO_RCVBUF to 32 KiB, reads the handshake, and asserts the buffer is unchanged. On macOS (Darwin 27.2) the kernel's receive-buffer autotuning grows it after the read, so recv_buffer_size() reports about 287 KiB. Reproduce with:

just rs test -p moq-rtmp -E 'test(receive_follows_the_limit_after_the_stream_is_open)'

It blocks just check on macOS whenever a change selects the whole Rust workspace. Linux passes, so the merge gate never sees it.

(Written by Claude Opus 5.5)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
9h 50m
Merged PRs (30d)
804

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.