Skip to content

Commit a97b888

Browse files
committed
Fix http_demo_s3_upload 'Timed out in transport send' for files larger than 48KB
1 parent 3d170a0 commit a97b888

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

demos/http/http_demo_s3_upload/http_demo_s3_upload.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ static bool uploadS3ObjectFile( const TransportInterface_t * pTransportInterface
554554
response.pBuffer = userBuffer;
555555
response.bufferLen = USER_BUFFER_LENGTH;
556556

557+
/* Enable use of HTTP_SEND_RETRY_TIMEOUT_MS */
558+
response.getTime = Clock_GetTimeMs;
559+
557560
if( httpStatus == HTTPSuccess )
558561
{
559562
httpStatus = HTTPClient_InitializeRequestHeaders( &requestHeaders,

0 commit comments

Comments
 (0)