mirror of
https://github.com/amnezia-vpn/amnezia-xray-bindings.git
synced 2026-12-03 19:24:51 +07:00
[PR #6] [MERGED] fix: shut down outbound connections on stop #7
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amnezia-xray-bindings#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
f0741ccfix: 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.