http_reader: fix usage with pure sockets