Indy icon indicating copy to clipboard operation
Indy copied to clipboard

Http GET Request with content-length > 0

Open MoacirSchmidt opened this issue 2 years ago • 3 comments

Hi, Remy!

First of all congratulations for your brilliant work!

I've noticed that a GET request with content-length > 0 and no payload (yes, it is a malformed header) hangs the connection, since the indy server is still waiting for some content.

My Indy production server is receiving some malformed requests of that kind from suspicious origins and I would like to know if there is some way to avoid this hang

Attached is a very simple project group illustrating the problem. Start the server, put any number into content-lenght on client and click on GET to see it hanging.

Thank you very much for any advice!

Projects.zip

MoacirSchmidt avatar Oct 02 '21 19:10 MoacirSchmidt