Infinite loop of connect retries removed.

FossilOrigin-Name: fef2d2c682ed10e71f2340f7d5407b9c5dc9ae40a1d32a0cca715ed983b9f37a
This commit is contained in:
7u83@mail.ru 2014-08-02 07:43:20 +00:00
parent ca88f63bc0
commit c70c5f90ef
1 changed files with 7 additions and 3 deletions

View File

@ -47,11 +47,15 @@ int dtls_openssl_connect(struct conn * conn)
if (!d)
return 0;
SSL_set_psk_client_callback( d->ssl, psk_client_cb);
if (conn->dtls_psk)
SSL_set_psk_client_callback( d->ssl, psk_client_cb);
if (conn->dtls_cert_file && conn->dtls_key_file){
}
char errstr[256];
int rc;
do{
// do{
rc = SSL_connect(d->ssl);
@ -82,7 +86,7 @@ int dtls_openssl_connect(struct conn * conn)
rc = dtls_openssl_log_error(d->ssl,rc,"DTLS connect");
} while (rc == 0 );
// } while (rc == 0 );
// printf("DTLS connect RC: %i\n",rc);