We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d170a0 commit 9e93847Copy full SHA for 9e93847
demos/http/http_demo_s3_upload/http_demo_s3_upload.c
@@ -44,6 +44,9 @@
44
/*Include backoff algorithm header for retry logic.*/
45
#include "backoff_algorithm.h"
46
47
+/* Clock for timer. */
48
+#include "clock.h"
49
+
50
/* Check that TLS port of the server is defined. */
51
#ifndef HTTPS_PORT
52
#error "Please define a HTTPS_PORT."
@@ -554,6 +557,9 @@ static bool uploadS3ObjectFile( const TransportInterface_t * pTransportInterface
554
557
response.pBuffer = userBuffer;
555
558
response.bufferLen = USER_BUFFER_LENGTH;
556
559
560
+ /* Enable use of HTTP_SEND_RETRY_TIMEOUT_MS */
561
+ response.getTime = Clock_GetTimeMs;
562
563
if( httpStatus == HTTPSuccess )
564
{
565
httpStatus = HTTPClient_InitializeRequestHeaders( &requestHeaders,
0 commit comments