<div dir="ltr">Hi All,<div><br></div><div>We have application that provide DTLS security for SCTP connections. During our testing we found that API "<b>SSL_connect</b> " fail and always returns SSL_ERROR_WANT_READ which causes infinite loop in the application.</div><div><br></div><div>Scenario:</div><div><br></div><div>1) On Server side "Client Certificate Request" is enabled by setting the SSL context as shown below</div><div><br></div><div><div><span style="white-space:pre">      </span>    SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT, NULL);</div></div><div><br></div><div>2) On client side we have not configured the public certificate.</div><div><br></div><div><br><b>Logs:</b></div><div><br></div><div><div>[10/14/0117 15:05:06]         F42C2700 Link-2 (SSL_accept) Failed to accept new connection,  Socket Id 65, Return Value 1</div><div>[10/14/0117 15:05:06]         F42C2700 Link-2 SSL File :<b> ssl/statem/statem_srvr.c </b>, Line number : <b>2882 </b>, Linux Error Code 0</div><div>[10/14/0117 15:05:06]         F26B7700 Link-1 SSL_connect() fails to connect need to retry, returned error code 2 , retry ? true</div><div>[10/14/0117 15:05:06]         F26B7700 Link-1 SSL_connect() fails to connect need to retry, returned error code 2 , retry ? true</div><div>[10/14/0117 15:05:06]         F26B7700 Link-1 SSL_connect() fails to connect need to retry, returned error code 2 , retry ? true</div></div><div><br></div><div><b><i><<< SSL_connect() always returns error code 2 that leeds to infinite loop in application >>></i></b></div><div><br></div><div>Attaching PCAP file for your reference. </div><div><br></div><div><b>Thanks,</b></div><div><b>Mahesh G S</b></div><div><br></div></div>