Description
We have been seeing intermittent failures in our performance tests when producer times out while waiting for metadata response, when running with SSL. Digging deeper into this failure, this is a result of data that was read into SslTransporLayer.netReadBuffer during handshake processing, but never processed later unless more data arrives on the network. In the case of the producer, no more data is sent until the metadata response is received and hence metadata request is never processed, leading to timeouts in the producer.