Blocks indefinately in prvMakeSureSocketIsBound

Hi,
I am using the demo TFTPServer code and incorporated changes to the first ack by moving it outside the do while loop as shown in the following link

The TFTP server seems to be working ok during first few tries. But after about 4-5 successful tftp’s, the TFTPServer task gets blocked in prvMakeSureSocketIsBound. I believe it is trying to bind the socket to a random port but it cannot do so successfully and so it blocks indefinitely. Any pointers on what could cause this?

Thanks,
Ravi

I think I figured out the issue. I was running IP task at lowest priority. Bumped up it’s priority and it seems to be working ok now.

Thank you for reporting back!