work around openssl bug 2481

OpenSSL doesn't like receiving non-handshake records when attempting to renegotiate.
This (quickhack) workaround reads and discards incoming records before attempting a renegotiation.