Reputation: 47
I implemented on a Xilinx Zynq Ultrascale an LwIP (lwip211, v1.8) TCP/IP example in FreeRTOS (v10). I want to add a read timeout as suggested here: SO_RCVTIMEO option on LwIP and How to set socket timeout in C when making multiple connections? using:
// Set socket read timeout
struct timeval read_timeout;
read_timeout.tv_sec = 5; // 5 seconds timeout
read_timeout.tv_usec = 0; // 0 microseconds
if (lwip_setsockopt(sd, SOL_SOCKET, SO_RCVTIMEO, &read_timeout, sizeof(read_timeout)) < 0)
{
fprintf(stderr, "Failed to set socket timeout: %s\n", strerror(errno));
return;
}
Once my client connect, I get the following message:
"Failed to set socket timeout: Too many symbolic links Warning: return statement has been called from task echos, deleting it"
I never encountered a symlink loop and dont know how to solve it (I am using Windows).
Upvotes: 1
Views: 128