[PR #4265] [MERGED] Fix/farhadh/traffic writer restart freeze #5640

Closed
opened 2026-10-31 20:48:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4265
Author: @farhadh
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @MHSanaei

Base: main ← Head: fix/traffic-writer-restart-freeze


📝 Commits (5)

  • e6760ae feat(traffic_writer): enhance traffic writer with concurrency safety and state management
  • 8fbdb8e Revert "feat(traffic_writer): enhance traffic writer with concurrency safety and state management"
  • fd906aa Merge branch 'MHSanaei:main' into main
  • 548ac71 feat(traffic_writer): enhance traffic writer with concurrency safety and state management
  • 4f80eec feat(web): implement panel-only start/stop methods for in-process restarts

📊 Changes

4 files changed (+293 additions, -35 deletions)

View changed files

📝 main.go (+2 -6)
📝 web/service/traffic_writer.go (+63 -17)
➕ web/service/traffic_writer_test.go (+190 -0)
📝 web/web.go (+38 -12)

📄 Description

What is the pull request?

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots


🔄 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/MHSanaei/3x-ui/pull/4265 **Author:** [@farhadh](https://github.com/farhadh) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/traffic-writer-restart-freeze` --- ### 📝 Commits (5) - [`e6760ae`](https://github.com/MHSanaei/3x-ui/commit/e6760ae39629a592dec293197768f27ff0f5a578) feat(traffic_writer): enhance traffic writer with concurrency safety and state management - [`8fbdb8e`](https://github.com/MHSanaei/3x-ui/commit/8fbdb8ee6ffa2c2c1412c692bb442dfd8c9e63fb) Revert "feat(traffic_writer): enhance traffic writer with concurrency safety and state management" - [`fd906aa`](https://github.com/MHSanaei/3x-ui/commit/fd906aac98ab5b660c873ce02c7a9eb7b9f720ab) Merge branch 'MHSanaei:main' into main - [`548ac71`](https://github.com/MHSanaei/3x-ui/commit/548ac7133bb36ef8647321877605944b97a6d0ab) feat(traffic_writer): enhance traffic writer with concurrency safety and state management - [`4f80eec`](https://github.com/MHSanaei/3x-ui/commit/4f80eec11d00d49feccff1d80f0f8c8bc88a3aa5) feat(web): implement panel-only start/stop methods for in-process restarts ### 📊 Changes **4 files changed** (+293 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+2 -6) 📝 `web/service/traffic_writer.go` (+63 -17) ➕ `web/service/traffic_writer_test.go` (+190 -0) 📝 `web/web.go` (+38 -12) </details> ### 📄 Description ## What is the pull request? <!-- Briefly describe the changes introduced by this pull request --> ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other ## Screenshots <!-- Add screenshots to illustrate the changes --> <!-- Remove this section if it is not applicable. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:20 +07:00
Sign in to join this conversation.
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
MHSanaei/3x-ui#5640
No description provided.