[PR #241] Socket buffer controls to solve bufferbloat. #292

Open
opened 2026-02-26 12:34:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cbeuw/Cloak/pull/241
Author: @notsure2
Created: 12/11/2023
Status: 🔄 Open

Base: masterHead: tcp-buffer-controls


📝 Commits (2)

  • 18355d0 Socket buffer controls to solve bufferbloat.
  • c3cde8d Fix: buffer should be set even in unordered mode because in the end it's tcp

📊 Changes

7 files changed (+208 additions, -31 deletions)

View changed files

📝 README.md (+15 -0)
📝 cmd/ck-client/ck-client.go (+67 -4)
📝 internal/client/state.go (+49 -16)
internal/common/platformfd_darwin.go (+8 -0)
internal/common/platformfd_linux.go (+8 -0)
internal/common/platformfd_windows.go (+10 -0)
📝 internal/server/state.go (+51 -11)

📄 Description

This adds multiple parameters to config (documented in README.md) which allow precise and control control over socket buffers.
For incoming, buffer must be set on listener socket, and for outgoing it must be set before connection.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cbeuw/Cloak/pull/241 **Author:** [@notsure2](https://github.com/notsure2) **Created:** 12/11/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `tcp-buffer-controls` --- ### 📝 Commits (2) - [`18355d0`](https://github.com/cbeuw/Cloak/commit/18355d06ceb6c232c499003b5b57c521c58dea34) Socket buffer controls to solve bufferbloat. - [`c3cde8d`](https://github.com/cbeuw/Cloak/commit/c3cde8d8af14e211487030f1797d0592488223de) Fix: buffer should be set even in unordered mode because in the end it's tcp ### 📊 Changes **7 files changed** (+208 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+15 -0) 📝 `cmd/ck-client/ck-client.go` (+67 -4) 📝 `internal/client/state.go` (+49 -16) ➕ `internal/common/platformfd_darwin.go` (+8 -0) ➕ `internal/common/platformfd_linux.go` (+8 -0) ➕ `internal/common/platformfd_windows.go` (+10 -0) 📝 `internal/server/state.go` (+51 -11) </details> ### 📄 Description This adds multiple parameters to config (documented in README.md) which allow precise and control control over socket buffers. For incoming, buffer must be set on listener socket, and for outgoing it must be set before connection. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#292
No description provided.