Some changes, but nothing realy working
FossilOrigin-Name: 0abb56e870f74b049e00e9d31b836689743abc990b16d5679075d009e0aeef59
This commit is contained in:
parent
1fc8205f05
commit
34bf503e7a
@ -67,7 +67,8 @@ int dtls_openssl_accept(struct conn * conn)
|
|||||||
int rc;
|
int rc;
|
||||||
// do{
|
// do{
|
||||||
int i;
|
int i;
|
||||||
for (i=0; i<5; i++){
|
// for (i=0; i<10; i++){
|
||||||
|
while(1){
|
||||||
rc = SSL_accept(d->ssl);
|
rc = SSL_accept(d->ssl);
|
||||||
|
|
||||||
if (rc!=1){
|
if (rc!=1){
|
||||||
@ -76,6 +77,9 @@ int dtls_openssl_accept(struct conn * conn)
|
|||||||
switch (e){
|
switch (e){
|
||||||
case SSL_ERROR_SYSCALL:
|
case SSL_ERROR_SYSCALL:
|
||||||
printf("syscall EOF!\n");
|
printf("syscall EOF!\n");
|
||||||
|
// continue;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,8 +94,8 @@ int dtls_openssl_accept(struct conn * conn)
|
|||||||
cw_log(LOG_ERR,"SSL_accept - %s",errstr);
|
cw_log(LOG_ERR,"SSL_accept - %s",errstr);
|
||||||
e = ERR_get_error();
|
e = ERR_get_error();
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
if (rc == 1)
|
if (rc == 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user