mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #756] 请问是不是只能保持30秒的长连接? #591
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#591
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 @235832289 on GitHub (May 9, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/756
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.1.18
What operating system and processor architecture are you using (
go env)?Configures you used:
Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
请问是不是只能保持30秒的长连接?

我有一个后台算法,通过webserver 去调用,时间超过30秒,每次一到30秒,frp就会断开,然后显示400的错误,但是后台的webserver还是在继续运行。
@xiaoyell commented on GitHub (May 9, 2018):
看着像渣渣用友的截面😀
建议尝试一下TCP
@235832289 commented on GitHub (May 9, 2018):
不是,不是用友,是我自己开的的软件系统,用dev插件包而已
TCP都试过,都是一样会断开。
@235832289 commented on GitHub (May 9, 2018):
自己通过作者的原代码解决了这个问题,在\github.com\fatedier\frp\utils\vhost\newhttp.go
有一个responseHeaderTimeout = time.Duration(30) * time.Second
更改成自己需求的秒数据即可,我系统限定的是180秒,因此这里30更还成180即可。