mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4717] 转发 HTTPS 连接时出现握手中断(RST),导致 curl 获取失败 #3725
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#3725
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?
Originally created by @Fadouse on GitHub (Mar 16, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4717
Bug Description
描述
在使用 FRP 将内网 Caddy 服务器的 TLS 服务(监听端口 443)映射到阿里云服务器公网 (监听端口 4433) 后,通过 curl 进行连接时,发现握手过程中连接被对端复位(RST),提示“Recv failure: Connection was reset”。但在浏览器中访问时,握手和连接均能正常完成。
环境信息
预期行为
curl 客户端使用 TLS 1.3 进行连接时,应与浏览器一样,成功完成 TLS 握手并建立加密连接,而不应被中途复位。
实际行为
使用 curl,在发送 Client Hello 后连接被中断,导致握手失败,出现“Connection reset by peer”错误;而浏览器使用相同协议时连接正常。
附加信息
frpc Version
0.61.1
frps Version
0.61.2
System Architecture
frpc: windows/amd64 frps: linux/amd64
Configurations
Logs
(35) Recv failure: Connection was resetSteps to reproduce
Affected area
@xqzr commented on GitHub (Mar 17, 2025):
域名未备案。
浏览器使用了
X25519MLKEM768未被阻断@Fadouse commented on GitHub (Mar 18, 2025):
感谢!
@hbliu1985 commented on GitHub (Jun 3, 2025):
我遇到同样的问题,只发生在某些网络环境中,请问怎么解决的?
2025-06-03 16:23:39.372 [D] [proxy/proxy_wrapper.go:265] [ddbf631394bc0c83] [liudoc.https-doc] start a new work connection, localAddr: 192.168.111.36:45965 remoteAddr: 14.103.140.101:7000
2025-06-03 16:23:39.373 [T] [proxy/proxy.go:151] [ddbf631394bc0c83] [liudoc.https-doc] handle tcp work connection, useEncryption: true, useCompression: true
2025-06-03 16:23:39.373 [D] [proxy/proxy.go:219] [ddbf631394bc0c83] [liudoc.https-doc] join connections, localConn(l[192.168.111.182:49412] r[192.168.111.182:443]) workConn(l[192.168.111.36:45965] r[14.103.140.101:7000])
2025-06-03 16:23:39.378 [D] [proxy/proxy.go:231] [ddbf631394bc0c83] [liudoc.https-doc] join connections closed
2025-06-03 16:23:39.379 [T] [proxy/proxy.go:233] [ddbf631394bc0c83] [liudoc.https-doc] join connections errors: [writeto tcp 192.168.111.182:49412->192.168.111.182:443: read tcp 192.168.111.182:49412->192.168.111.182:443: use of closed network connection]
@xqzr commented on GitHub (Jun 3, 2025):
https://github.com/fatedier/frp/issues/3778#issuecomment-2933491110