openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
259 stars 115 forks source link

HTTP mode: implement exec_timeout via context/cancel #9

Closed alexellis closed 6 years ago

alexellis commented 6 years ago

Description

Enable exec_timeout for http mode

Motivation and Context

This needed to be added to the http mode to control the duration of http requests

How Has This Been Tested?

Locally with Go outside of a container with a go function that sleeps within the timeout and beyond it to see that the error is given as Gateway timed out.

Types of changes

Checklist: