-
Notifications
You must be signed in to change notification settings - Fork 310
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
Connection closing after aprox. 15 minutes #76
Comments
There must be some proxy in between that is cutting the connection. |
How can I debug that? |
I think the issue is that the client doesn't know it's disconnected, so it doesn't retry. |
@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. |
Are you running a release version or you build it yourself? |
@mmatczuk I'm running the latest release windows_amd64 |
I also tried the x86 version without success. |
It's about the windows built. I'd suggest moving to linux :) |
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? |
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 https://github.com/gocql/gocql/blob/2e9f2912ba58e37f34af3554659b576eac655760/conn.go#L1130. You can also experiment with the timing https://github.com/mmatczuk/go-http-tunnel/blob/master/keepalive.go#L19. |
@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 Thanks |
@tianchaijz It would be awesome if you could PR your heartbeat work back to this project. We're seeing this issue running |
The reset is performed at the time the connection has been established. This can cause the problem described in mmatczuk#76. I the server connection fails after max_time + x it tries to reconnect. If that fails once it immediately stops trying with the message "backoff limit exceeded"
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!
The text was updated successfully, but these errors were encountered: