[PR #127] Fix backoff inconsistency, error pages, minimal API, keepalive configurable,... #152

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

📋 Pull Request Information

Original PR: https://github.com/mmatczuk/go-http-tunnel/pull/127
Author: @hons82
Created: 3/26/2021
Status: 🔄 Open

Base: masterHead: master


📝 Commits (10+)

  • 51dd354 Fix backoff inconsistency
  • 6ed4e8c Remove ignored files
  • 3c06994 Renamed package and updated README.md
  • 8f14813 Fix split configuration logging message into lines and print each in separat log message
  • b901486 Add automatic redirect to https if both http and https are configured
  • 572eb25 Add support for custom error pages
  • cf22ff5 Add sample error pages and documentation
  • 3723dbe Add minimal API to query the state of the tunnel server
  • b61db3c Add configurable keepalive
  • e2fbec3 Fix improve reconnection logging

📊 Changes

158 files changed (+1905 additions, -45917 deletions)

View changed files

📝 .gitignore (+211 -18)
📝 Makefile (+10 -8)
📝 README.md (+55 -8)
backoff.go (+0 -19)
📝 benchmark/README.md (+1 -1)
📝 client.go (+36 -10)
📝 client_test.go (+40 -38)
📝 cmd/tunnel/config.go (+13 -32)
📝 cmd/tunnel/options.go (+5 -3)
📝 cmd/tunnel/tunnel.go (+14 -6)
cmd/tunneld/api.go (+61 -0)
📝 cmd/tunneld/banner.go (+1 -2)
📝 cmd/tunneld/options.go (+33 -23)
📝 cmd/tunneld/tunneld.go (+128 -22)
connection/backoff.go (+44 -0)
connection/keepalive.go (+68 -0)
📝 errors.go (+17 -5)
fileutil/file.go (+51 -0)
📝 go.mod (+3 -2)
📝 go.sum (+6 -2)

...and 80 more files

📄 Description

The reset is performed at the time the connection has been established.
This can cause the problem described in #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"


🔄 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/127 **Author:** [@hons82](https://github.com/hons82) **Created:** 3/26/2021 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`51dd354`](https://github.com/mmatczuk/go-http-tunnel/commit/51dd354371e61253176549d4565d7f10252f25e6) Fix backoff inconsistency - [`6ed4e8c`](https://github.com/mmatczuk/go-http-tunnel/commit/6ed4e8c9dbb2104420a7ec3830594d14c3243f3b) Remove ignored files - [`3c06994`](https://github.com/mmatczuk/go-http-tunnel/commit/3c069943223d6cddffd3e8f1ed6b5c524ba79ae3) Renamed package and updated README.md - [`8f14813`](https://github.com/mmatczuk/go-http-tunnel/commit/8f1481373a462da7f188254b1d79cb336d295ee9) Fix split configuration logging message into lines and print each in separat log message - [`b901486`](https://github.com/mmatczuk/go-http-tunnel/commit/b901486b9f3763833f015af1f01ff3a14a3be202) Add automatic redirect to https if both http and https are configured - [`572eb25`](https://github.com/mmatczuk/go-http-tunnel/commit/572eb255005975a6f17ac8ae4fa90fdb79c5205a) Add support for custom error pages - [`cf22ff5`](https://github.com/mmatczuk/go-http-tunnel/commit/cf22ff5a3b64699f63f91068c03f8163ce6a8987) Add sample error pages and documentation - [`3723dbe`](https://github.com/mmatczuk/go-http-tunnel/commit/3723dbe084123ec600404ba2990f5a42b916ef85) Add minimal API to query the state of the tunnel server - [`b61db3c`](https://github.com/mmatczuk/go-http-tunnel/commit/b61db3c9671a04e194320a9de350d96bf67df281) Add configurable keepalive - [`e2fbec3`](https://github.com/mmatczuk/go-http-tunnel/commit/e2fbec3a9156a61544b5d8549325e6c5629d51be) Fix improve reconnection logging ### 📊 Changes **158 files changed** (+1905 additions, -45917 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+211 -18) 📝 `Makefile` (+10 -8) 📝 `README.md` (+55 -8) ➖ `backoff.go` (+0 -19) 📝 `benchmark/README.md` (+1 -1) 📝 `client.go` (+36 -10) 📝 `client_test.go` (+40 -38) 📝 `cmd/tunnel/config.go` (+13 -32) 📝 `cmd/tunnel/options.go` (+5 -3) 📝 `cmd/tunnel/tunnel.go` (+14 -6) ➕ `cmd/tunneld/api.go` (+61 -0) 📝 `cmd/tunneld/banner.go` (+1 -2) 📝 `cmd/tunneld/options.go` (+33 -23) 📝 `cmd/tunneld/tunneld.go` (+128 -22) ➕ `connection/backoff.go` (+44 -0) ➕ `connection/keepalive.go` (+68 -0) 📝 `errors.go` (+17 -5) ➕ `fileutil/file.go` (+51 -0) 📝 `go.mod` (+3 -2) 📝 `go.sum` (+6 -2) _...and 80 more files_ </details> ### 📄 Description The reset is performed at the time the connection has been established. This can cause the problem described in #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" --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror added the
pull-request
label 2026-05-05 11:02:37 -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#152
No description provided.