v.21.1Improvements

Add EOF Check in receiveHello to Prevent Exception

Add eof check in receiveHello in server to prevent getting Attempt to read after eof exception. #17365 (Kruglov Pavel).
Added an end-of-file (EOF) check in the receiveHello function on the server side to prevent the Attempt to read after eof exception.

Why it matters

This feature addresses the issue where the server could attempt to read data past the end of a stream during the initial handshake, causing an exception. By implementing an EOF check, it prevents such read errors, improving connection stability and reliability.

How to use it

This is an internal server-side improvement applied automatically with the update; users do not need to take any additional action to benefit from it.