Fix timeout type from BaseType_t to TickType_t (#1392)

Fixed a bug where the timeout value was not reflected correctly in FreeRTOS_TCP_Server when TickType_t was set to 64-bit.
This commit is contained in:
okapui
2026-02-13 07:19:56 +09:00
committed by GitHub
parent 30b61e5503
commit ff5a96c501

View File

@@ -76,7 +76,7 @@
if( pxServer != NULL )
{
struct freertos_sockaddr xAddress;
BaseType_t xNoTimeout = 0;
TickType_t xNoTimeout = 0;
BaseType_t xIndex;
memset( pxServer, '\0', xSize );
@@ -112,8 +112,8 @@
FreeRTOS_bind( xSocket, &xAddress, sizeof( xAddress ) );
FreeRTOS_listen( xSocket, pxConfigs[ xIndex ].xBackLog );
FreeRTOS_setsockopt( xSocket, 0, FREERTOS_SO_RCVTIMEO, ( void * ) &xNoTimeout, sizeof( BaseType_t ) );
FreeRTOS_setsockopt( xSocket, 0, FREERTOS_SO_SNDTIMEO, ( void * ) &xNoTimeout, sizeof( BaseType_t ) );
FreeRTOS_setsockopt( xSocket, 0, FREERTOS_SO_RCVTIMEO, ( void * ) &xNoTimeout, sizeof( TickType_t ) );
FreeRTOS_setsockopt( xSocket, 0, FREERTOS_SO_SNDTIMEO, ( void * ) &xNoTimeout, sizeof( TickType_t ) );
#if ( ipconfigHTTP_RX_BUFSIZE > 0 )
{