Skip to content

fix: increase buffer sizes for WriteBuffer and connection receive ope…#22

Merged
ruslanti merged 1 commit into
mainfrom
ref/increase_write_buffer
May 14, 2026
Merged

fix: increase buffer sizes for WriteBuffer and connection receive ope…#22
ruslanti merged 1 commit into
mainfrom
ref/increase_write_buffer

Conversation

@ruslanti
Copy link
Copy Markdown
Collaborator

…rations

@ruslanti ruslanti requested review from gabioprisan and qrdl May 14, 2026 09:20
@ruslanti ruslanti self-assigned this May 14, 2026
Copilot AI review requested due to automatic review settings May 14, 2026 09:20
@ruslanti ruslanti added the enhancement New feature or request label May 14, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR increases internal buffer sizes in the nginx unix socket module to improve throughput when handling reads/writes, and bumps the crate version accordingly.

Changes:

  • Increased WriteBuffer initial allocation from 4096 to 16384 bytes.
  • Increased the per-read stack buffer in on_read from 1024 to 16384 bytes.
  • Bumped nginx_module version from 0.2.1 to 0.2.2 (and Cargo.lock updated).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
nginx_module/src/unix_socket.rs Enlarges WriteBuffer and on_read receive buffer to 16 KiB
nginx_module/Cargo.toml Version bump 0.2.1 → 0.2.2
Cargo.lock Reflects new nginx_module version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ruslanti ruslanti merged commit 10b6a2c into main May 14, 2026
11 checks passed
@ruslanti ruslanti deleted the ref/increase_write_buffer branch May 14, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants