fixed ssl CONNECT reply from being truncated.
after receiving the CONNECT reply of ok we had
to reset the total bytes to read to 0 to avoid
using the old value and truncating the follow up reply
of the actual webserver response.