https://github.com/philips-labs/timeout-tricker
Tricks your ELB into not timing out long running connections
https://github.com/philips-labs/timeout-tricker
elb golang reverse-proxy timeout
Last synced: 3 months ago
JSON representation
Tricks your ELB into not timing out long running connections
- Host: GitHub
- URL: https://github.com/philips-labs/timeout-tricker
- Owner: philips-labs
- Created: 2020-07-09T19:11:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-04T13:59:18.000Z (about 2 years ago)
- Last Synced: 2025-07-22T00:36:13.766Z (3 months ago)
- Topics: elb, golang, reverse-proxy, timeout
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# timeout-tricker
A reverse proxy that tricks your ELB into not timing out your connection.
It only works on requests which can tolerate spaces prefixed to the body e.g. `json` or `html`
Also, it disables compression for convenience right now. Ultimately it should
include some heuristics or hinting based on the `path` so it can anticipate
the expected response.# configuration
| Environment | Description |
|-------------|-------------|
| HOST | Upstream host to proxy |
| TIMEOUT | Number of seconds to wait before tricking starts |# possible TODOs
- Add some heuristics based on original `path` of the request to anticipate the type of response coming back
- Buffer or store the response temporarily in case of binary BODY and generate a HTML redirect on-the-fly to this location# contact / getting help
* andy.lo-a-foe@philips.com
# license
License is MIT