gentics / gentics/proxy-php

Slow requests throws remote headers in body

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
22
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Hi, I have just given the proxy a shot and it seems to work fine. One issue that took some time to figure out, though: Sometimes I'm getting remote http headers in the body. I looks like the reason is that the response has not returned before the http headers get parsed and the socket object gets passed along with the remote headers intact.

Setting the timeout higher than 5 seconds fixes the issue.
What about setting the default timeout higher than 5 seconds and throw a hard error (such as http 504) when a request times out?

It would be easier to handle than figure out why http headers suddenly is a part of the payload.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.