<div dir="ltr">Hi all,<div><br></div><div>I see a lot of questions and answers about how to handle SSL_ERROR_WANT_READ / WRITE during SSL_read/write, and I understand that the error is returned when the SSL library needs to do a handshake in the middle of read/write operation, so we need to repeat the call when the appropriate event happens.</div><div><br></div><div>But what I don't understand is, why does the library need to re-do the handshake? If I set up my program so go through the SSL_connect/accept calls properly (and handle SSL_ERROR_WANT_READ/WRITE in there properly) and do the handshake successfully in the beginning itself, then why does the library need to do a handshake again?</div><div><br></div><div>If I'm happy with my initial handshake, is there a way to disable subsequent handshaking for that socket?</div><div><br></div><div>Thanks,</div><div>Pratyush.</div></div>