Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions demos/http/http_demo_s3_upload/http_demo_s3_upload.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
/*Include backoff algorithm header for retry logic.*/
#include "backoff_algorithm.h"

/* Clock for timer. */
#include "clock.h"

/* Check that TLS port of the server is defined. */
#ifndef HTTPS_PORT
#error "Please define a HTTPS_PORT."
Expand Down Expand Up @@ -554,6 +557,9 @@ static bool uploadS3ObjectFile( const TransportInterface_t * pTransportInterface
response.pBuffer = userBuffer;
response.bufferLen = USER_BUFFER_LENGTH;

/* Enable use of HTTP_SEND_RETRY_TIMEOUT_MS */
response.getTime = Clock_GetTimeMs;

if( httpStatus == HTTPSuccess )
{
httpStatus = HTTPClient_InitializeRequestHeaders( &requestHeaders,
Expand Down