bug (connection): connection would return without reading full http response

The protobuffer message would not be parsed correctly.