Read full data from socket. Prefer PreparedRequest.copy() over custom function.