[GH-ISSUE #809] p2p模式使用ssh,stop frps 造成 ssh卡死 #632

Closed
opened 2026-05-05 12:24:36 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @nzlov on GitHub (Jun 8, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/809

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.20.0

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/nzlov/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/nzlov/workspace/go"
GORACE=""
GOROOT="/Users/nzlov/program/go"
GOTMPDIR=""
GOTOOLDIR="/Users/nzlov/program/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_9/6616bz990gb21ds_kw9tv1x40000gn/T/go-build542945769=/tmp/go-build -gno-record-gcc-switches -fno-common"

Configures you used:
frpc

[p2p_ssh]     
type = xtcp
local_ip = 127.0.0.1
local_port = 22
sk =xx

frpc2

[p2p_ssh_visitor]
type = xtcp
role = visitor
server_name = p2p_ssh
sk = xx
bind_addr = 127.0.0.1
bind_port = 6000

Steps to reproduce the issue:

  1. 启动frpsfrpc
    2.ssh -p 6000 root@127.0.0.1
    3.stop frps

Describe the results you received:
ssh 进程卡死 ,也无法ctrl - c退出

Describe the results you expected:
退出 ssh

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

Originally created by @nzlov on GitHub (Jun 8, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/809 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.20.0 **What operating system and processor architecture are you using (`go env`)?** ``` GOARCH="amd64" GOBIN="" GOCACHE="/Users/nzlov/Library/Caches/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/nzlov/workspace/go" GORACE="" GOROOT="/Users/nzlov/program/go" GOTMPDIR="" GOTOOLDIR="/Users/nzlov/program/go/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_9/6616bz990gb21ds_kw9tv1x40000gn/T/go-build542945769=/tmp/go-build -gno-record-gcc-switches -fno-common" ``` **Configures you used:** frpc ``` [p2p_ssh] type = xtcp local_ip = 127.0.0.1 local_port = 22 sk =xx ``` frpc2 ``` [p2p_ssh_visitor] type = xtcp role = visitor server_name = p2p_ssh sk = xx bind_addr = 127.0.0.1 bind_port = 6000 ``` **Steps to reproduce the issue:** 1. 启动`frps`、`frpc` 2.`ssh -p 6000 root@127.0.0.1` 3.stop `frps` **Describe the results you received:** `ssh` 进程卡死 ,也无法`ctrl - c`退出 **Describe the results you expected:** 退出 `ssh` **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)**
Author
Owner

@luisliou commented on GitHub (Nov 17, 2018):

我也遇到类似的问题了,貌似是因为p2p模式下会疯狂发包,本来百兆网线,端口速率愣是上到了200M左右,导致整个系统拥塞,所以会产生某些进程无法响应的问题,有办法限速么?

<!-- gh-comment-id:439640186 --> @luisliou commented on GitHub (Nov 17, 2018): 我也遇到类似的问题了,貌似是因为p2p模式下会疯狂发包,本来百兆网线,端口速率愣是上到了200M左右,导致整个系统拥塞,所以会产生某些进程无法响应的问题,有办法限速么?
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#632
No description provided.