Skip to content

Commit

Permalink
Adjust timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbartell committed Jun 14, 2024
1 parent 8a07a6f commit 1e46ce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
/**
* @brief Timeout in milliseconds for transport send and receive.
*/
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 2000U )

/**
* @brief The MQTT metrics string expected by AWS IoT MQTT Broker.
Expand Down
3 changes: 3 additions & 0 deletions platform/posix/transport/src/mbedtls_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ static MbedtlsStatus_t configureMbedtls( MbedtlsContext_t * pMbedtlsContext,
mbedtls_ssl_conf_read_timeout( &( pMbedtlsContext->config ),
recvTimeoutMs );

mbedtls_ssl_conf_handshake_timeout( &( pMbedtlsContext->config ),
5000, 60000 );

mbedtls_ssl_conf_dbg( &pMbedtlsContext->config,
mbedtlsDebugPrint,
NULL );
Expand Down

0 comments on commit 1e46ce5

Please sign in to comment.