[GH-ISSUE #4243] frp stcp bug #3343

Closed
opened 2026-05-05 14:09:26 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @wb1t on GitHub (May 27, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4243

Bug Description

通过STCP方式连接远程桌面,有几台服务器会报协议错误,start new visitor connection error: custom listener for [proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941] doesn't exist
不知道这个serverName是不是有hash算法问题还是长度有限制

frpc Version

0.54.0

frps Version

0.54.0

System Architecture

Windows/amd64

Configurations

visitors
name = "visitors-stcp-rdp-10116"
type = "stcp"
serverName = "proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941"
secretKey = "rdpad.baidu.comrdp"
bindAddr = "127.0.0.1"
bindPort = 10116
transport.useEncryption=true
transport.useCompression=true

Logs

2024/05/27 22:32:11 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10116] start new visitor connection error: custom listener for [proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941] doesn't exist
2024/05/27 22:33:44 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10116] start new visitor connection error: custom listener for [proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941] doesn't exist
2024/05/27 22:33:47 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10126] start new visitor connection error: custom listener for [proxies-stcp-rdp-DB9F75DA-74B4-41B6-B40F-B9DB2677E1DF] doesn't exist
2024/05/27 22:34:09 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10104] start new visitor connection error: custom listener for [proxies-stcp-rdp-3BA1FA84-5B6F-4A28-B45A-F273890977A9] doesn't exist

Steps to reproduce

  1. 每次都能重现!

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @wb1t on GitHub (May 27, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4243 ### Bug Description 通过STCP方式连接远程桌面,有几台服务器会报协议错误,start new visitor connection error: custom listener for [proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941] doesn't exist 不知道这个serverName是不是有hash算法问题还是长度有限制 ### frpc Version 0.54.0 ### frps Version 0.54.0 ### System Architecture Windows/amd64 ### Configurations [[visitors]] name = "visitors-stcp-rdp-10116" type = "stcp" serverName = "proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941" secretKey = "rdpad.baidu.comrdp" bindAddr = "127.0.0.1" bindPort = 10116 transport.useEncryption=true transport.useCompression=true ### Logs 2024/05/27 22:32:11 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10116] start new visitor connection error: custom listener for [proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941] doesn't exist 2024/05/27 22:33:44 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10116] start new visitor connection error: custom listener for [proxies-stcp-rdp-55F25A99-2B43-44A6-93E5-60223BF36941] doesn't exist 2024/05/27 22:33:47 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10126] start new visitor connection error: custom listener for [proxies-stcp-rdp-DB9F75DA-74B4-41B6-B40F-B9DB2677E1DF] doesn't exist 2024/05/27 22:34:09 [W] [stcp.go:114] [71ed92dfe93235ec] [visitors-stcp-rdp-10104] start new visitor connection error: custom listener for [proxies-stcp-rdp-3BA1FA84-5B6F-4A28-B45A-F273890977A9] doesn't exist ### Steps to reproduce 1. 每次都能重现! 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:09:26 -06:00
Author
Owner

@fatedier commented on GitHub (May 29, 2024):

secretKey 不要贴出来,日志和配置无法看出问题,建议在本地环境用最小化的配置看是否能复现问题,如果可以,贴出完整的测试配置。

<!-- gh-comment-id:2136441309 --> @fatedier commented on GitHub (May 29, 2024): secretKey 不要贴出来,日志和配置无法看出问题,建议在本地环境用最小化的配置看是否能复现问题,如果可以,贴出完整的测试配置。
Author
Owner

@wuai1024 commented on GitHub (Jun 5, 2024):

serverName 太长了,我遇到过。

<!-- gh-comment-id:2149063493 --> @wuai1024 commented on GitHub (Jun 5, 2024): `serverName ` 太长了,我遇到过。
Author
Owner

@wb1t commented on GitHub (Jun 8, 2024):

我也在怀疑serverName太长或前面某些部分有重叠的可能性,看了一下frp只用到了比较短的ID做为唯一标识

<!-- gh-comment-id:2156004276 --> @wb1t commented on GitHub (Jun 8, 2024): 我也在怀疑serverName太长或前面某些部分有重叠的可能性,看了一下frp只用到了比较短的ID做为唯一标识
Author
Owner

@wb1t commented on GitHub (Jun 12, 2024):

serverName 这个算法的确有问题 换个serverName名字就可以连接上了,目前接了100个左右的客户端,serverName是用的工具生成的guid做为的serverName,检查过了也没有重复 但就是连接不上 真是怪了

<!-- gh-comment-id:2162085177 --> @wb1t commented on GitHub (Jun 12, 2024): serverName 这个算法的确有问题 换个serverName名字就可以连接上了,目前接了100个左右的客户端,serverName是用的工具生成的guid做为的serverName,检查过了也没有重复 但就是连接不上 真是怪了
Author
Owner

@fatedier commented on GitHub (Jun 12, 2024):

@wb1t 尽量提供一个最简化的可复现的完整配置,否则很难测试。

<!-- gh-comment-id:2162112559 --> @fatedier commented on GitHub (Jun 12, 2024): @wb1t 尽量提供一个最简化的可复现的完整配置,否则很难测试。
Author
Owner

@github-actions[bot] commented on GitHub (Jul 4, 2024):

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

<!-- gh-comment-id:2207668882 --> @github-actions[bot] commented on GitHub (Jul 4, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d 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#3343
No description provided.