mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #2823] [MERGED] Notify server plugins when a proxy is closed #4630
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#4630
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/2823
Author: @kmod-midori
Created: 3/2/2022
Status: ✅ Merged
Merged: 3/8/2022
Merged by: @fatedier
Base:
dev← Head:feat-plugin-close-proxy📝 Commits (6)
782a7c0add close proxy opecff348Move to actual closing routine098f79bFix e2e tests for CloseProxyb3c0657Add warning on resource exhaustioncd1a6c8Add CloseProxy to manual close2e98671retuen errors toCloseProxycallers📊 Changes
7 files changed (+145 additions, -2 deletions)
View changed files
📝
doc/server_plugin.md(+21 -1)📝
pkg/plugin/server/manager.go(+32 -0)📝
pkg/plugin/server/plugin.go(+1 -0)📝
pkg/plugin/server/types.go(+5 -0)📝
server/control.go(+29 -0)📝
test/e2e/framework/process.go(+7 -1)📝
test/e2e/plugin/server.go(+50 -0)📄 Description
This is an implementation of #2821 ,but currently does not work.
It seems that similar types of plugin requests are dispatched here, but after adding a
fmt.Printf("%+v\n", m), no message is sent to this channel when I pressCtrl-Cinfrpc, am I missing something?19739ed31a/server/control.go (L455-L457)I have chosen to ignore any response from the plugin since there is nothing to modify in this operation (we can't prevent a proxy from closing).
Help is needed also for end-to-end tests, since it is passing when really should not.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.