[PR #6] [MERGED] fix: shut down outbound connections on stop #7

Closed
opened 2026-10-30 04:58:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-xray-bindings/pull/6
Author: @NickVs2015
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @vkamn

Base: main ← Head: fix/close-connections-on-stop


📝 Commits (1)

  • f0741cc fix: shut down outbound connections on stop

📊 Changes

4 files changed (+77 additions, -7 deletions)

View changed files

📝 Makefile (+1 -1)
📝 main.go (+58 -6)
➕ shutdown_unix.go (+9 -0)
➕ shutdown_windows.go (+9 -0)

📄 Description

core.Instance.Close() only closes the inbound listeners. Sessions that are
already established keep running inside the host process until the peer
closes them, so after a config change or a stop a browser connected to the
SOCKS inbound keeps sending traffic through the old instance over its
keep-alive connections, and the lingering sockets keep the port busy.


🔄 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/amnezia-vpn/amnezia-xray-bindings/pull/6 **Author:** [@NickVs2015](https://github.com/NickVs2015) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@vkamn](https://github.com/vkamn) **Base:** `main` ← **Head:** `fix/close-connections-on-stop` --- ### 📝 Commits (1) - [`f0741cc`](https://github.com/amnezia-vpn/amnezia-xray-bindings/commit/f0741cc67a2511754494a2066aad6dc9807d38d9) fix: shut down outbound connections on stop ### 📊 Changes **4 files changed** (+77 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+1 -1) 📝 `main.go` (+58 -6) ➕ `shutdown_unix.go` (+9 -0) ➕ `shutdown_windows.go` (+9 -0) </details> ### 📄 Description core.Instance.Close() only closes the inbound listeners. Sessions that are already established keep running inside the host process until the peer closes them, so after a config change or a stop a browser connected to the SOCKS inbound keeps sending traffic through the old instance over its keep-alive connections, and the lingering sockets keep the port busy. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-30 04:58:56 +07: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
amnezia-vpn/amnezia-xray-bindings#7
No description provided.