[PR #52] [MERGED] TCP keepalive #127

Closed
opened 2026-05-05 11:02:03 -06:00 by gitea-mirror · 0 comments
Owner

📋 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: masterHead: mmt/keepalive


📝 Commits (3)

  • 07f9fb6 dep: added github.com/felixge/tcpkeepalive
  • 6177081 tunnel: added TCP keepalive to connections for client and server
  • 95be6e2 server: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/mmatczuk/go-http-tunnel/pull/52 **Author:** [@mmatczuk](https://github.com/mmatczuk) **Created:** 11/22/2017 **Status:** ✅ Merged **Merged:** 11/22/2017 **Merged by:** [@mmatczuk](https://github.com/mmatczuk) **Base:** `master` ← **Head:** `mmt/keepalive` --- ### 📝 Commits (3) - [`07f9fb6`](https://github.com/mmatczuk/go-http-tunnel/commit/07f9fb62849f4b60b3c0a8561c2a1155d2478421) dep: added github.com/felixge/tcpkeepalive - [`6177081`](https://github.com/mmatczuk/go-http-tunnel/commit/6177081afbb3c8dcfac25c3deaa8db2fe811b2a1) tunnel: added TCP keepalive to connections for client and server - [`95be6e2`](https://github.com/mmatczuk/go-http-tunnel/commit/95be6e2c879c172e28ce737868ab7eb158694599) server: ping ### 📊 Changes **7 files changed** (+122 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 11:02:03 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/go-http-tunnel#127
No description provided.