diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/DemoTasks/S3DownloadHTTPExample.c b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/DemoTasks/S3DownloadHTTPExample.c index 205a0f3a8..83e549a8d 100644 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/DemoTasks/S3DownloadHTTPExample.c +++ b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/DemoTasks/S3DownloadHTTPExample.c @@ -36,10 +36,17 @@ * requests, filling up the response buffer each time until all parts are * downloaded). If any request fails, an error code is returned. * - * @Note: This demo requires user-generated pre-signed URLs to be pasted into + * @note This demo requires user-generated pre-signed URLs to be pasted into * demo_config.h. Please use the provided script "presigned_urls_gen.py" * (located in located in coreHTTP_Windows_Simulator/Common) to generate these * URLs. For detailed instructions, see the accompanied README.md. + * + * @note If your file requires more than 99 range requests to S3 (depending on the + * size of the file and the length specified in democonfigRANGE_REQUEST_LENGTH), + * your connection may be dropped by S3. In this case, either increase the + * buffer size and range request length (if feasible), to reduce the number of + * requests required, or re-establish the connection with S3 after receiving a + * "Connection: close" response header. */ /** @@ -285,7 +292,7 @@ void vStartSimpleHTTPDemo( void ) * requests, filling up the response buffer each time until all parts are * downloaded). If any request fails, an error code is returned. * - * @Note: This demo requires user-generated pre-signed URLs to be pasted into + * @note This demo requires user-generated pre-signed URLs to be pasted into * demo_config.h. Please use the provided script "presigned_urls_gen.py" * (located in located in coreHTTP_Windows_Simulator/Common) to generate these * URLs. For detailed instructions, see the accompanied README.md. diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/FreeRTOSIPConfig.h b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/FreeRTOSIPConfig.h index ad24b2ff4..c82712755 100644 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/FreeRTOSIPConfig.h +++ b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download/FreeRTOSIPConfig.h @@ -287,7 +287,7 @@ extern UBaseType_t uxRand(); /* Each TCP socket has a circular buffers for Rx and Tx, which have a fixed * maximum size. Define the size of Rx buffer for TCP sockets. */ -#define ipconfigTCP_RX_BUFFER_LENGTH ( 1000 ) +#define ipconfigTCP_RX_BUFFER_LENGTH ( 5000 ) /* Define the size of Tx buffer for TCP sockets. */ #define ipconfigTCP_TX_BUFFER_LENGTH ( 1000 ) diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/DemoTasks/S3DownloadMultithreadedHTTPExample.c b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/DemoTasks/S3DownloadMultithreadedHTTPExample.c index 7fb5bebdf..f0c0a5566 100644 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/DemoTasks/S3DownloadMultithreadedHTTPExample.c +++ b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/DemoTasks/S3DownloadMultithreadedHTTPExample.c @@ -56,6 +56,13 @@ * demo_config.h. Please use the provided script "presigned_urls_gen.py" * (located in located in coreHTTP_Windows_Simulator/Common) to generate these * URLs. For detailed instructions, see the accompanied README.md. + * + * @note If your file requires more than 99 range requests to S3 (depending on the + * size of the file and the length specified in democonfigRANGE_REQUEST_LENGTH), + * your connection may be dropped by S3. In this case, either increase the + * buffer size and range request length (if feasible), to reduce the number of + * requests required, or re-establish the connection with S3 after receiving a + * "Connection: close" response header. */ /** diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/FreeRTOSIPConfig.h b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/FreeRTOSIPConfig.h index ad24b2ff4..c82712755 100644 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/FreeRTOSIPConfig.h +++ b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Download_Multithreaded/FreeRTOSIPConfig.h @@ -287,7 +287,7 @@ extern UBaseType_t uxRand(); /* Each TCP socket has a circular buffers for Rx and Tx, which have a fixed * maximum size. Define the size of Rx buffer for TCP sockets. */ -#define ipconfigTCP_RX_BUFFER_LENGTH ( 1000 ) +#define ipconfigTCP_RX_BUFFER_LENGTH ( 5000 ) /* Define the size of Tx buffer for TCP sockets. */ #define ipconfigTCP_TX_BUFFER_LENGTH ( 1000 ) diff --git a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/DemoTasks/S3UploadHTTPExample.c b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/DemoTasks/S3UploadHTTPExample.c index 44280cdbb..3e299942f 100644 --- a/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/DemoTasks/S3UploadHTTPExample.c +++ b/FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/HTTP_S3_Upload/DemoTasks/S3UploadHTTPExample.c @@ -36,7 +36,7 @@ * request, and verify the file was uploaded using a GET request. If any request * fails, an error code is returned. * - * @Note: This demo requires user-generated pre-signed URLs to be pasted into + * @note This demo requires user-generated pre-signed URLs to be pasted into * demo_config.h. Please use the provided script "presigned_urls_gen.py" * (located in coreHTTP_Windows_Simulator/Common) to generate these URLs. For * detailed instructions, see the accompanied README.md.