Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
in ssl_write_real() function if the following code without what I added "return( ret ); WMQ for bug 4836" it will return len instead - the issue with this method is the higher level does not know ssl_write_real() did not send the data and there is no way TLS layer can resend this data until next try from higher level. We have this problem when we send many data and notice some data at the end were not received until we issue another request. By returning "ret" (which in this case is 0) will tell higher level that the write is not complete so it can retry.
if( ssl->out_left != 0 ) { /*
if( ( ret = mbedtls_ssl_write_record( ssl ) ) != 0 ) { MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_write_record", ret ); return( ret ); } }
return( (int) len );