Conflict between UDP multicast and TCP server

vtomix
Posts: 6
Joined: Mon Sep 10, 2018 8:25 pm

Conflict between UDP multicast and TCP server

Postby vtomix » Mon Nov 12, 2018 9:11 pm

I have a FreeRTOS task for the ipv4 udp multicast rx and an other realize a simple tcp server (both based on the examples). If both task are run the TCP task cant accept connections: Unable to accept connection: errno 113. If only the tcp server is running, it works perfect.
Could be any conflict theoretically between TCP accept() and a configured UDP multicast task? If yes, what could cause this?

vtomix
Posts: 6
Joined: Mon Sep 10, 2018 8:25 pm

Re: Conflict between UDP multicast and TCP server

Postby vtomix » Tue Nov 13, 2018 9:35 pm

I found the problem. My UDP task uses select(). If I eliminate select() the tcp server accept() works. So the select() is not a thread safe function?

ESP_Sprite
Posts: 8884
Joined: Thu Nov 26, 2015 4:08 am

Re: Conflict between UDP multicast and TCP server

Postby ESP_Sprite » Wed Nov 14, 2018 4:34 am

Interesting; given that your code is correct, that shouldn't happen. Do you have a sample project that does this so we can take a look at it?

Who is online

Users browsing this forum: No registered users and 85 guests