[#1534] Finally fix SslHandler to also correctly handle partial data