Hi,
I was trying to run two tcp connections at the same time using rtcs. When one tcp socket is running and sending data, i create another tcp socket.
But when i tried to connect it, it fails. Are there some settings i should change to run multiple connections ? i have set max tcp connections to unlimited in user_config.h
Solved! Go to Solution.
Thanks ! It works now. Are there some sort of formula for determining how many pcb, msg or sockets that i need for some number of connections ??
Hi Handy,
Good it worked! Well, my formula is: for every socket give 1 pcb and 1 msg. also. If I will need 5 sockets (for instance) then I set 7 as the maximum or start with 7 sockets. You need to leave room for have the TCPIP timers close sockets and that doesn't happen immediately. Timeouts need to run before closing sockets.
Regards,
Garabo