[PR #4259] [MERGED] fix(xray): implement graceful shutdown for xray process and add tests #5637

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

📋 Pull Request Information

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

Base: main ← Head: fix/farhadh/panel-restart-breaking-xray


📝 Commits (1)

  • ab78af5 fix(xray): implement graceful shutdown for xray process and add tests

📊 Changes

4 files changed (+265 additions, -24 deletions)

View changed files

📝 sub/sub.go (+4 -1)
📝 web/web.go (+3 -1)
📝 xray/process.go (+96 -22)
➕ xray/process_test.go (+162 -0)

📄 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/4259 **Author:** [@farhadh](https://github.com/farhadh) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/farhadh/panel-restart-breaking-xray` --- ### 📝 Commits (1) - [`ab78af5`](https://github.com/MHSanaei/3x-ui/commit/ab78af57d876849bb86518f0287dfd65c67993a5) fix(xray): implement graceful shutdown for xray process and add tests ### 📊 Changes **4 files changed** (+265 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `sub/sub.go` (+4 -1) 📝 `web/web.go` (+3 -1) 📝 `xray/process.go` (+96 -22) ➕ `xray/process_test.go` (+162 -0) </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 - [x] 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:19 +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#5637
No description provided.