Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem



Posted by raymadigan on October 10, 2016

I am building a network client style interface where the server will be on or off at various times. I am working on the outer connection look where I attempt to connect and if the connect times out I retry the connection. I have set the timeout for send and receive for the socket. When the connect times out, I do some small amout of housekeeping then try the connection again. The problem is I have to wait a very large amount of time before I can retry the connection without getting a socket EINPROGRESS status. This delay is on order of seconds.

If I don't delay the task and keep asking for a connection the connection continues to return EINPROGRESS status and never connects. Is there a way to check the status of the socket to know when I can ask if it is ready? Is there a known timeout value that I have to wait until I ask for another connection?

Is this the expected behaviour?


Posted by rtel on October 11, 2016

I don't think so, but I will have to check the code to know for sure.


Posted by raymadigan on November 4, 2016

I will assume that how the code works is correct and will see if I can figure out what I am dong wrong.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner