cpp-netlib/cpp-netlib — pull request #87 by Mike-ECT (2012-01-31 08:55:42+00:00)
Title: HTTP client can block forever with chunked body content

In sync_base.hpp:151, you read chunk_size + 2 bytes, which seems incorrect, when some of the body has already been read in line 134. I think the lib must read " response_buffer.size() - chunk_size_line" less bytes, since the contents of the response_buffer already contain part of the body.

I had the problem that the client got stuck until the Web server closed the connection (obviously, this is only a problem for connections kept alive). When I made the fix, everything worked fine.