-
Notifications
You must be signed in to change notification settings - Fork 0
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
Initial library #6
Commits on Feb 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1395734 - Browse repository at this point
Copy the full SHA 1395734View commit details -
Initial implementation of a TCP proxy supporting basic configuration …
…and a least-connection load balancer. Yet to be implemented: mTLS authn/z and RateLimiting
Configuration menu - View commit details
-
Copy full SHA for 20b4c1f - Browse repository at this point
Copy the full SHA 20b4c1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43b7f12 - Browse repository at this point
Copy the full SHA 43b7f12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fefcbb - Browse repository at this point
Copy the full SHA 0fefcbbView commit details
Commits on Feb 28, 2024
-
- Comments and consolidation of Config - Simplify connection handling in proxy with less channels + goroutines
Configuration menu - View commit details
-
Copy full SHA for b6a8d27 - Browse repository at this point
Copy the full SHA b6a8d27View commit details -
Integrate a large chunk of feedback with the exception of the LoadBal…
…ancer implementation.
Configuration menu - View commit details
-
Copy full SHA for b0bf3c3 - Browse repository at this point
Copy the full SHA b0bf3c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb9881d - Browse repository at this point
Copy the full SHA fb9881dView commit details
Commits on Feb 29, 2024
-
Address feedback related to LoadBalancer implementation
Josh Branham committedFeb 29, 2024 Configuration menu - View commit details
-
Copy full SHA for ea6a0d5 - Browse repository at this point
Copy the full SHA ea6a0d5View commit details -
Rework how IdleTimeout is configured via SetDeadline. Tested this by …
…setting a sleep in the echo server, and confirmed the tests failed, logging the i/o timeout. It is possible this doesn't work exactly how I think, in that long-lived connections that don't send some type of heartbeat might expire. Will test that once I have the server component. ``` ❯ make test go test ./... 2024/02/28 21:27:59 INFO proxy ready listening=127.0.0.1:61459 targets=127.0.0.1:61458 2024/02/28 21:28:01 ERROR idle timeout exceeded error="readfrom tcp 127.0.0.1:61459->127.0.0.1:61460: read tcp 127.0.0.1:61461->127.0.0.1:61458: i/o timeout" 2024/02/28 21:28:01 ERROR copying data error="readfrom tcp 127.0.0.1:61459->127.0.0.1:61460: read tcp 127.0.0.1:61461->127.0.0.1:61458: i/o timeout" 2024/02/28 21:28:01 ERROR idle timeout exceeded error="readfrom tcp 127.0.0.1:61461->127.0.0.1:61458: read tcp 127.0.0.1:61459->127.0.0.1:61460: i/o timeout" 2024/02/28 21:28:01 ERROR copying data error="readfrom tcp 127.0.0.1:61461->127.0.0.1:61458: read tcp 127.0.0.1:61459->127.0.0.1:61460: i/o timeout" ```
Josh Branham committedFeb 29, 2024 Configuration menu - View commit details
-
Copy full SHA for c13ca4f - Browse repository at this point
Copy the full SHA c13ca4fView commit details -
Add back DialTimeout to ensure we can't hang connecting to an upstream
Josh Branham committedFeb 29, 2024 Configuration menu - View commit details
-
Copy full SHA for 5f312ac - Browse repository at this point
Copy the full SHA 5f312acView commit details -
Add some missing public function godoc
Josh Branham committedFeb 29, 2024 Configuration menu - View commit details
-
Copy full SHA for 95a48db - Browse repository at this point
Copy the full SHA 95a48dbView commit details -
Address feedback to ensure you can't double close/serve. Added safety…
… on connection closing to prevent a goroutine from getting stuck. Simplify the public API.
Josh Branham committedFeb 29, 2024 Configuration menu - View commit details
-
Copy full SHA for f973894 - Browse repository at this point
Copy the full SHA f973894View commit details
Commits on Mar 1, 2024
-
Simplify locking behavior of Serving with atomic.Bool
Josh Branham committedMar 1, 2024 Configuration menu - View commit details
-
Copy full SHA for a9cbf9d - Browse repository at this point
Copy the full SHA a9cbf9dView commit details -
Close client connection when upstream is down
Josh Branham committedMar 1, 2024 Configuration menu - View commit details
-
Copy full SHA for 1e82174 - Browse repository at this point
Copy the full SHA 1e82174View commit details -
Fix issue with hung connections
Josh Branham committedMar 1, 2024 Configuration menu - View commit details
-
Copy full SHA for 07b0fa1 - Browse repository at this point
Copy the full SHA 07b0fa1View commit details
Commits on Mar 8, 2024
-
Implement a Token Bucket rate limiter (#4)
* Implement a Token Bucket rate limiter * Misc cleanup, comments * RateLimitManager gracefully handles individual RateLimiters being closed already.
Configuration menu - View commit details
-
Copy full SHA for f1d7cc6 - Browse repository at this point
Copy the full SHA f1d7cc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fef6c3 - Browse repository at this point
Copy the full SHA 3fef6c3View commit details -
Merge branch 'main' of https://github.com/joshbranham/tcp-proxy into …
…initial-library
Configuration menu - View commit details
-
Copy full SHA for 65197e0 - Browse repository at this point
Copy the full SHA 65197e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5c7a4a - Browse repository at this point
Copy the full SHA a5c7a4aView commit details