Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行大概6小时之后,tpc隧道会无法连接,http隧道正常 #1

Open
shuimugan opened this issue Jul 3, 2017 · 6 comments
Open
Labels

Comments

@shuimugan
Copy link

前天晚上开始使用,发现一觉睡醒就再也连不上tcp隧道了
昨晚又测试了一次,在睡觉前测试时可以连接,睡醒之后就无法连接了,重启客户端恢复正常,我睡觉时间大概5小时,加上睡前的重启行为,推测大概在6小时最后tcp的隧道就会挂掉

还有以下的问题:
服务端重启了服务,tpc隧道会不可用(http正常)

客户端环境:ubuntu 16.04位
php:7.1.6

服务端环境:ubuntu-14.04 64位
php:7.1.3

@slince
Copy link
Owner

slince commented Jul 3, 2017

  1. 方不方便提供下服务端与客户端的日志文件,我邮箱 taosikai@yeah.net;

  2. 另外由于输出日志到命令行可能会阻塞导致进程阻塞;你先在两端的配置文件里吧log level调整到error级别减少日志输出看下 长时间之后是否还有这个问题

@slince slince added the bug label Jul 3, 2017
@shuimugan
Copy link
Author

@slince 客户端和服务端都是ssd,阻塞问题应该不大.
文档里找不到log level的选项...所以不知道可以调成error

@slince
Copy link
Owner

slince commented Jul 3, 2017

@shuimugan 哈哈 文档是没怎么写,服务端与客户端的配置文件里都有一项叫log 下面有level
image

@slince
Copy link
Owner

slince commented Jul 3, 2017

我说的这个阻塞不是写入文件,是输出到控制台的信息,我不知道这算不算php的bug,长时间写入到控制台会导致程序阻塞,阻塞的时候敲下回车下就好了

@shuimugan
Copy link
Author

我是用进程守护工具pm2启动的,没办法切到回去按回车...

@slince
Copy link
Owner

slince commented Jul 4, 2017

在睡觉前测试时可以连接,睡醒之后就无法连接了,重启客户端恢复正常

分析了下你的日志,客户端在链接将近半小时以后就断开了;一般来说心跳包会维持客户端的链接;我本地测试没有发现这个问题;针对此在beta2版本加入了异常断线重连,从服务器断开之后会自动重连一次

服务端重启了服务,tpc隧道会不可用(http正常)

这个问题我也发现了,不过我的现象是长时间运行之后tcp会变的卡顿(但不是不可连接);问题是http底层也是用的tcp隧道;问题还在排查

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants