Fix bug with chunked replies

When server sends headers and then waits before sending response chunk,
`client_parse` returns error.

With this patch, control is given back to the event loop in order to wait for more data.