mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
[GH-ISSUE #76] Connection closing after aprox. 15 minutes #38
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/go-http-tunnel#38
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 @rdelvalle on GitHub (Mar 13, 2018).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/76
Hello. I've a client that after 15 minutes disconnects. In the client I don't see any log. This is what I see in the server:
I tried with backoff: max_time: 0 but there was no difference.
Thanks!
@mmatczuk commented on GitHub (Mar 13, 2018):
There must be some proxy in between that is cutting the connection.
@rdelvalle commented on GitHub (Mar 13, 2018):
How can I debug that?
@rdelvalle commented on GitHub (Mar 13, 2018):
I think the issue is that the client doesn't know it's disconnected, so it doesn't retry.
@rdelvalle commented on GitHub (Mar 13, 2018):
@mmatczuk Could it be that the keepalive for windows is not working? I'm using a tcp connection on Windows 7. Seems it closes after 15 minutes of no activity.
@mmatczuk commented on GitHub (Mar 13, 2018):
Are you running a release version or you build it yourself?
@rdelvalle commented on GitHub (Mar 13, 2018):
@mmatczuk I'm running the latest release windows_amd64
@rdelvalle commented on GitHub (Mar 14, 2018):
I also tried the x86 version without success.
@mmatczuk commented on GitHub (Mar 14, 2018):
It's about the windows built. I'd suggest moving to linux :)
@rdelvalle commented on GitHub (Mar 14, 2018):
I myself use Linux and MacOS, but unfortunately, the computer where I want to add the tunnel uses Windows and I'll need to deal with it 😢. Do you think the problem is of the KeepAlive that the app is using or it's about the implementation of it?
@mmatczuk commented on GitHub (Mar 14, 2018):
You would need to debug it, from what I see https://github.com/mmatczuk/go-http-tunnel/blob/master/keepalive_windows.go#L12 could be more like
2e9f2912ba/conn.go (L1130). You can also experiment with the timing https://github.com/mmatczuk/go-http-tunnel/blob/master/keepalive.go#L19.@tianchaijz commented on GitHub (Nov 7, 2018):
@rdelvalle try my heartbeat branch: https://github.com/tianchaijz/go-http-tunnel
@ice6 commented on GitHub (Jan 23, 2019):
@tianchaijz it is cool. I carefully read your code, and I think your implementation is quite good, why not make a pull request to merge back :)
I made such implementation using zeromq years ago, it is quite necessary for such a program.
the heartbeat version can easily pass the weak network test(switch network, close and reconnect network etc)
@mmatczuk
I just learn go recently, really happy to see such a wonderful/high quality open source projects.
Thanks
👍
@apottere commented on GitHub (Apr 8, 2020):
@tianchaijz It would be awesome if you could PR your heartbeat work back to this project.
We're seeing this issue running
tunneldin AWS, with clients connecting through an NLB. NLB disconnects clients that don't send any data for 350 seconds (source), so our clients get disconnected and have to be restarted if no requests are routed to them in that timeframe.