Remove looping from HTTP mutual auth demo
To prevent unnecessary AWS IoT resource usage, the HTTP mutual-auth demo is changed to stop looping endlessly.
*/
#define IOT_CORE_ALPN_PROTOCOL_NAME "\x0ex-amzn-http-ca"
-/**
- * @brief Delay in seconds between each iteration of the demo.
- */
-#define DEMO_LOOP_DELAY_SECONDS ( 5U )
-
/* Check that transport timeout for transport send and receive is defined. */
#ifndef TRANSPORT_SEND_RECV_TIMEOUT_MS
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000 )
@@ -348,8 +343,6 @@ int main( int argc,
( void ) argc;
( void ) argv;
- for( ; ; )
- {
/**************************** Connect. ******************************/
/* Establish TLS connection on top of TCP connection using OpenSSL. */
@@ -406,9 +399,5 @@ int main( int argc,
/* End TLS session, then close TCP connection. */
( void ) Openssl_Disconnect( &networkContext );
- LogInfo( ( "Short delay before starting the next iteration....\n" ) );
- sleep( DEMO_LOOP_DELAY_SECONDS );
- }
-
return returnStatus;
}
