[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] http-client: 304 Not Modified
From: |
Andy Bennett |
Subject: |
[Chicken-users] http-client: 304 Not Modified |
Date: |
Thu, 01 Nov 2012 17:30:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.9) Gecko/20121014 Icedove/10.0.9 |
Hi,
When http-client receives a 304 Not Modified response it tries to
read-string until the end of the connection. 304 Not Modified responses
must not have a body and therefore, on keep-alive connections, the read
hangs until it times out.
Here we present a patch that handles this case and also handles the
similar 204 No Content reply.
We don't bother to handle the similar, but different, 1xx series of
responses because they are complicated in other, more interesting, ways.
Thanks are due to Moritz Heidkamp for helping to read the HTTP spec.
Regards,
@ndy
--
address@hidden
http://www.ashurst.eu.org/
0x7EBA75FF
http-client-304.patch
Description: Text Data
- [Chicken-users] http-client: 304 Not Modified,
Andy Bennett <=