mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3019] Heartbeat seems to block http request #2412
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#2412
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 @N1v0k on GitHub (Jul 15, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3019
Bug Description
I have a local simple http server.
FRPC forwards the requests to this http server.
I noticed that a lot of my requests took around 29s (sometimes shorter), chrome said it was TTFB, so it was waiting for the first byte.
I have control over the http server and I can see when the first byte reaches the http server.
essentially what I seeing is this:
As you can see in the timestamps, there is about a 30s delay.
I investigated this and came to the conclusion that the hearbeat may block the request forwarding.
I then set
heartbeat_interval = 1and now the requests are working immediately:If i disable heartbeats completely, FRPS just returns a 404-not found page after a while
frpc Version
0.44.0
frps Version
0.44.0
System Architecture
linux/amd64,
Configurations
frpc.ini
frps.ini
Logs
No response
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (Jul 16, 2022):
Unable to reproduce.
Can you use simplest configures and test it in local node to see if the problem exists? You can also test with other public http service.
@github-actions[bot] commented on GitHub (Aug 16, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.