- an attempt to re-produce 502 error code, related to issue valyala/fasthttp#739
- Default port: 8010 (can be configured in Dockerfile)
- used sleep (> 2 mins) to simulate long running task, client gets 502 at 120s = 2 mins
- Build docker image
- Open terminal 1 and run container
- fire up a request in another terminal window
docker build -t fasthttp-server .
docker run --rm --name server -p 8010:8010 fasthttp-server
curl http://localhost:8010/
docker logs server -f
Clean up local env
docker image rm fasthttp-server