mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
[PR #52] [MERGED] TCP keepalive #127
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#127
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?
📋 Pull Request Information
Original PR: https://github.com/mmatczuk/go-http-tunnel/pull/52
Author: @mmatczuk
Created: 11/22/2017
Status: ✅ Merged
Merged: 11/22/2017
Merged by: @mmatczuk
Base:
master← Head:mmt/keepalive📝 Commits (3)
07f9fb6dep: added github.com/felixge/tcpkeepalive6177081tunnel: added TCP keepalive to connections for client and server95be6e2server: ping📊 Changes
7 files changed (+122 additions, -30 deletions)
View changed files
📝
Gopkg.lock(+7 -1)📝
Gopkg.toml(+4 -0)📝
client.go(+19 -9)📝
pool.go(+44 -16)📝
server.go(+18 -4)➕
tunnel.go(+24 -0)📝
utils.go(+6 -0)📄 Description
This is a modified version of https://github.com/mmatczuk/go-http-tunnel/pull/50.
TCP keepalive is enabled for client and server, a library is used to ensure consistent behavior on different platforms and to set custom keepalive idle timeout. Ping is exposed in Server API and returns RTT. On connect if ping does not return within 500ms the old client is disconnected.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.