An open API service indexing awesome lists of open source software.

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

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