mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5022] [MERGED] Fix CloseNotifyConn.Close function #5103
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5103
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/fatedier/frp/pull/5022
Author: @zachwhaley
Created: 10/16/2025
Status: ✅ Merged
Merged: 10/17/2025
Merged by: @fatedier
Base:
dev← Head:fix-conn-close-bug📝 Commits (1)
12888e9Fix CloseNotifyConn.Close function📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
pkg/util/net/conn.go(+1 -1)📄 Description
WHY
The
CloseNotifyConn.Closefunction calls itself if thecloseFlagis equal to0which would mean it would immediately swap thecloseFlagvalue to1and never callcloseFn. It is unclear what the intent of this call tocc.Close()was but I assume it was meant to be a call to close the Conn object instead.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.