ERR_NET_CONN_RESET can't happen with UDP

This commit is contained in:
Manuel Pégourié-Gonnard 2014-10-13 19:19:39 +02:00 committed by Paul Bakker
parent caecdaed25
commit dc6a75a952
2 changed files with 0 additions and 12 deletions

View File

@ -1326,12 +1326,6 @@ send_request:
ret = 0;
goto close_notify;
case 0:
case POLARSSL_ERR_NET_CONN_RESET:
printf( " connection was reset by peer\n" );
ret = 0;
goto reconnect;
default:
printf( " ssl_read returned -0x%x\n", -ret );
goto exit;

View File

@ -1875,12 +1875,6 @@ data_exchange:
ret = 0;
goto close_notify;
case 0:
case POLARSSL_ERR_NET_CONN_RESET:
printf( " connection was reset by peer\n" );
ret = POLARSSL_ERR_NET_CONN_RESET;
goto reset;
default:
printf( " ssl_read returned -0x%x\n", -ret );
goto reset;