Fixed an issue where EAGAIN was translated into a successful handshake, addressing [1367823d51]