[GH-ISSUE #163] https 协议反向代理好像不稳定 #107

Closed
opened 2026-05-05 11:46:23 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @shihuihzh on GitHub (Nov 21, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/163

您好,我的服务器平台是Windows ,反向代理https协议到某一台的svn服务器之后打开页面相当的慢,大概需要几十秒左右才能得到响应,响应过后网速就正常了,不过几十秒之后又不正常了,连接又再需要几十秒的,如此反复。下面是我的配置

# 服务端
vhost_https_port = 18443
privilege_mode = true 
privilege_token = abc

# 客户端
[privilege_web_svn]
privilege_mode = true
type = https
use_encryption = true
local_ip = 127.0.0.1
local_port = 443
# use_gzip = true
custom_domains = vc.abc.cn
# host_header_rewrite = 

日志

# 服务端日志
2016/11/21 17:40:36 [server.go:162] [D] ProxyName [privilege_web_svn], get one new user conn [121.32.144.34:3378]
2016/11/21 17:40:36 [control.go:127] [D] ProxyName [privilege_web_svn], notice client to add work conn
2016/11/21 17:40:45 [control.go:38] [D] Get new connection, 121.32.144.34:3379
2016/11/21 17:40:45 [control.go:63] [D] Get msg from frpc: {"type":1,"proxy_name":"privilege_web_svn","auth_key":"","use_encryption":false,"use_gzip":false,"pool_count":0,"privilege_mode":true,"privilege_key":"511950e057d0d81c090135104481a8d9","proxy_type":"","remote_port":0,"custom_domains":null,"host_header_rewrite":"","timestamp":1479721185}

2016/11/21 17:40:45 [server.go:179] [D] Join two connections, (l[服务端ip:18445] r[121.32.144.34:3379]) (l[服务端ip:18443] r[121.32.144.34:3378])
2016/11/21 17:40:45 [process.go:86] [D] ProxyName [privilege_web_svn], One tunnel stopped
# 客户端日志
2016/11/21 17:29:51 [client.go:98] [D] Join two connections, (l[192.168.11.8:43571] r[192.168.11.8:443]) (l[192.168.11.8:43572] r[14.18.236.27:18445])
2016/11/21 17:29:51 [control.go:104] [D] ProxyName [privilege_web_svn], new user connection
2016/11/21 17:29:57 [process.go:86] [D] ProxyName [privilege_web_svn], One tunnel stopped
2016/11/21 17:30:00 [client.go:98] [D] Join two connections, (l[192.168.11.8:43573] r[192.168.11.8:443]) (l[192.168.11.8:43574] r[服务器ip:18445])
2016/11/21 17:30:00 [process.go:86] [D] ProxyName [privilege_web_svn], One tunnel stopped

请求截图

image

再次谢谢

Originally created by @shihuihzh on GitHub (Nov 21, 2016). Original GitHub issue: https://github.com/fatedier/frp/issues/163 您好,我的服务器平台是`Windows` ,反向代理`https`协议到某一台的`svn`服务器之后打开页面相当的慢,大概需要几十秒左右才能得到响应,响应过后网速就正常了,不过几十秒之后又不正常了,连接又再需要几十秒的,如此反复。下面是我的配置 ```` # 服务端 vhost_https_port = 18443 privilege_mode = true privilege_token = abc # 客户端 [privilege_web_svn] privilege_mode = true type = https use_encryption = true local_ip = 127.0.0.1 local_port = 443 # use_gzip = true custom_domains = vc.abc.cn # host_header_rewrite = ```` 日志 ```` # 服务端日志 2016/11/21 17:40:36 [server.go:162] [D] ProxyName [privilege_web_svn], get one new user conn [121.32.144.34:3378] 2016/11/21 17:40:36 [control.go:127] [D] ProxyName [privilege_web_svn], notice client to add work conn 2016/11/21 17:40:45 [control.go:38] [D] Get new connection, 121.32.144.34:3379 2016/11/21 17:40:45 [control.go:63] [D] Get msg from frpc: {"type":1,"proxy_name":"privilege_web_svn","auth_key":"","use_encryption":false,"use_gzip":false,"pool_count":0,"privilege_mode":true,"privilege_key":"511950e057d0d81c090135104481a8d9","proxy_type":"","remote_port":0,"custom_domains":null,"host_header_rewrite":"","timestamp":1479721185} 2016/11/21 17:40:45 [server.go:179] [D] Join two connections, (l[服务端ip:18445] r[121.32.144.34:3379]) (l[服务端ip:18443] r[121.32.144.34:3378]) 2016/11/21 17:40:45 [process.go:86] [D] ProxyName [privilege_web_svn], One tunnel stopped ```` ```` # 客户端日志 2016/11/21 17:29:51 [client.go:98] [D] Join two connections, (l[192.168.11.8:43571] r[192.168.11.8:443]) (l[192.168.11.8:43572] r[14.18.236.27:18445]) 2016/11/21 17:29:51 [control.go:104] [D] ProxyName [privilege_web_svn], new user connection 2016/11/21 17:29:57 [process.go:86] [D] ProxyName [privilege_web_svn], One tunnel stopped 2016/11/21 17:30:00 [client.go:98] [D] Join two connections, (l[192.168.11.8:43573] r[192.168.11.8:443]) (l[192.168.11.8:43574] r[服务器ip:18445]) 2016/11/21 17:30:00 [process.go:86] [D] ProxyName [privilege_web_svn], One tunnel stopped ```` 请求截图 ![image](https://cloud.githubusercontent.com/assets/4484295/20477547/0be119fa-b011-11e6-8c9f-4dcdabe95f6e.png) 再次谢谢
Author
Owner

@fatedier commented on GitHub (Nov 21, 2016):

只有 https 代理出问题吗?同样的页面如果换成 http 代理是否也有问题?感觉这个问题从描述上来看比较难定位。

<!-- gh-comment-id:261953379 --> @fatedier commented on GitHub (Nov 21, 2016): 只有 https 代理出问题吗?同样的页面如果换成 http 代理是否也有问题?感觉这个问题从描述上来看比较难定位。
Author
Owner

@shihuihzh commented on GitHub (Nov 23, 2016):

昨天测试了,在 Linux 上部署了一套服务端,貌似不存在这个问题,疑惑为啥 windows 会有这种问题

<!-- gh-comment-id:262419124 --> @shihuihzh commented on GitHub (Nov 23, 2016): 昨天测试了,在 Linux 上部署了一套服务端,貌似不存在这个问题,疑惑为啥 windows 会有这种问题
Author
Owner

@shihuihzh commented on GitHub (Nov 23, 2016):

不对,好像也还是有这个问题,原先以为是我的服务器因为是外国的缘故慢一点,今天切成http之后发现也是瞬间就打开了,感觉https还是存在问题

<!-- gh-comment-id:262419605 --> @shihuihzh commented on GitHub (Nov 23, 2016): 不对,好像也还是有这个问题,原先以为是我的服务器因为是外国的缘故慢一点,今天切成http之后发现也是瞬间就打开了,感觉https还是存在问题
Author
Owner

@fatedier commented on GitHub (Nov 28, 2016):

那可能是 https 握手的时候存在问题,@maodanp 看一下呢?

<!-- gh-comment-id:263178370 --> @fatedier commented on GitHub (Nov 28, 2016): 那可能是 https 握手的时候存在问题,@maodanp 看一下呢?
Author
Owner

@laohoo commented on GitHub (Mar 31, 2017):

https确实是时快时慢的

<!-- gh-comment-id:290754472 --> @laohoo commented on GitHub (Mar 31, 2017): https确实是时快时慢的
Author
Owner

@adhll commented on GitHub (May 25, 2017):

关了加密试试。速度应该就上去了

<!-- gh-comment-id:303891394 --> @adhll commented on GitHub (May 25, 2017): 关了加密试试。速度应该就上去了
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#107
No description provided.