Maybe your problem is solved, but here is some general information about FreeRTOS_connect() and timeouts:
Before FreeRTOS_connect() is called, configure FREERTOS_SO_SNDTIMEO.
Before FreeRTOS_accept() is called, configure FREERTOS_SO_RCVTIMEO.
Time-out values are always provided in number of clock-ticks. pdMS_TO_TICKS() translates from milli-seconds to ticks.
You can call FreeRTOS_connect() in a non-blocking way and call it repeatedly. Once connected, it will return either 0 or -pdFREERTOS_ERRNO_EALREADY.
It will return -pdFREERTOS_ERRNO_EINPROGRESS when it is still working on it.
This is an example of connecting, along with setting the time-outs::