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; ret = 0;
goto close_notify; goto close_notify;
case 0:
case POLARSSL_ERR_NET_CONN_RESET:
printf( " connection was reset by peer\n" );
ret = 0;
goto reconnect;
default: default:
printf( " ssl_read returned -0x%x\n", -ret ); printf( " ssl_read returned -0x%x\n", -ret );
goto exit; goto exit;

View File

@ -1875,12 +1875,6 @@ data_exchange:
ret = 0; ret = 0;
goto close_notify; 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: default:
printf( " ssl_read returned -0x%x\n", -ret ); printf( " ssl_read returned -0x%x\n", -ret );
goto reset; goto reset;