[GH-ISSUE #4967] [Feature Request] 是否能够转发 FIN,实现 TCP 半关闭? #3913

Closed
opened 2026-05-05 14:29:46 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @hubenchang0515 on GitHub (Sep 4, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4967

Describe the feature request

我代理的程序使了 TCP 的半关闭特性,A 断开连接(发送 FIN)后 B 不会立刻断开连接。

如图:A 连接了 B 的 8484 端口,执行了某些操作后向 8484 发送 FIN,B 等待 A 连接 7580 端口后,8484 才回复 FIN
Image

使用 frp 代理时,A 发送 FIN 后,还没有连接 7580 就收到了返回的 FIN。感觉应该时 frp 收到 FIN 后自行断开连接了。

Image

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @hubenchang0515 on GitHub (Sep 4, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4967 ### Describe the feature request 我代理的程序使了 TCP 的半关闭特性,A 断开连接(发送 FIN)后 B 不会立刻断开连接。 如图:A 连接了 B 的 8484 端口,执行了某些操作后向 8484 发送 FIN,B 等待 A 连接 7580 端口后,8484 才回复 FIN <img width="1129" height="89" alt="Image" src="https://github.com/user-attachments/assets/c6e7db8c-8e5b-4eb9-98f8-f0659312107b" /> 使用 frp 代理时,A 发送 FIN 后,还没有连接 7580 就收到了返回的 FIN。感觉应该时 frp 收到 FIN 后自行断开连接了。 <img width="1090" height="125" alt="Image" src="https://github.com/user-attachments/assets/3b60bda4-bd31-49ae-825b-c2af5bfaea5c" /> ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:29:46 -06:00
Author
Owner

@f0re1gnKey commented on GitHub (Sep 5, 2025):

你需要 3层隧道

<!-- gh-comment-id:3257892473 --> @f0re1gnKey commented on GitHub (Sep 5, 2025): 你需要 3层隧道
Author
Owner

@xqzr commented on GitHub (Sep 6, 2025):

不能。frp 在应用层实现转发

<!-- gh-comment-id:3263249980 --> @xqzr commented on GitHub (Sep 6, 2025): 不能。frp 在应用层实现转发
Author
Owner

@github-actions[bot] commented on GitHub (Sep 21, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:3315401227 --> @github-actions[bot] commented on GitHub (Sep 21, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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: github-starred/frp#3913
No description provided.