The fact you get this exception when trying to read_some
means that the HTTP server closes the connection after the first request is over, i.e. the server ignores "Connection: keep-alive" header (note that HTTP 1.0 servers don't necessarily support persistent connections).
However, in 1.1 version connections are persistent by default, so requesting "HTTP/1.1" should solve this issue.