[PR #138] [MERGED] Explicitly stop the timer when the connection is closed. #276

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

📋 Pull Request Information

Original PR: https://github.com/cbeuw/Cloak/pull/138
Author: @notsure2
Created: 12/5/2020
Status: Merged
Merged: 12/6/2020
Merged by: @cbeuw

Base: masterHead: explicit-stop-timer


📝 Commits (2)

  • 208a7f2 Fix memory leaking by extra timers.
  • 0327d0f Further reduce the amount of calls to AfterFunc

📊 Changes

2 files changed (+59 additions, -30 deletions)

View changed files

📝 internal/multiplex/datagramBufferedPipe.go (+29 -15)
📝 internal/multiplex/streamBufferedPipe.go (+30 -15)

📄 Description

Fixes #137 again.


🔄 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/138 **Author:** [@notsure2](https://github.com/notsure2) **Created:** 12/5/2020 **Status:** ✅ Merged **Merged:** 12/6/2020 **Merged by:** [@cbeuw](https://github.com/cbeuw) **Base:** `master` ← **Head:** `explicit-stop-timer` --- ### 📝 Commits (2) - [`208a7f2`](https://github.com/cbeuw/Cloak/commit/208a7f249f5f788237908108946e147cad1dd29c) Fix memory leaking by extra timers. - [`0327d0f`](https://github.com/cbeuw/Cloak/commit/0327d0ffb391d0abd9cf67d3e0253cd5795f4099) Further reduce the amount of calls to AfterFunc ### 📊 Changes **2 files changed** (+59 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `internal/multiplex/datagramBufferedPipe.go` (+29 -15) 📝 `internal/multiplex/streamBufferedPipe.go` (+30 -15) </details> ### 📄 Description Fixes #137 again. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 12:34:27 +03:00
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#276
No description provided.