This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/DK-TM4C129X: Open TCP socket disables HTTP server

Part Number: DK-TM4C129X

Tool/software: TI-RTOS

I just implemented a TCP server listening on two sockets, running simultaneously with the TI-provided HTTP server I have had working fine for some time.  Thanks for doing such a good job on it.  I had no trouble getting my CGI code attached and working as I wished.

However, whenever my new server calls accept() and holds a data socket open, the HTTP server responds to all CGI GET requests with a status of -1 and no response body.  When I close the data socket, the HTTP runs my CGI code properly again, and I see the expected responses.  I also notice that, simply having the TCP server running causes the HTTP server to be unreliable in serving up graphical image .png files referenced in index.html, whether or not the TCP server has a data socket open.  I listen on ports 50000 and 50001.

I have increased BIOS.heapSize from 22528 (recommended in the HTTP server PowerPoint), to 60000, just to be generous to any memory deficits, and the behavior doesn't change.  This leads me to conclude that this is not a memory problem, but that I am competing with the HTTP server for other resources.  Ip.defaultSockMaxConn is 8, which seems to be enough for the HTTP and TCP servers.  Maybe there is a limit on the maximum number of file descriptors, which I haven't yet found.  Otherwise, I'm not sure what the resource might be.

Do you have ideas on what resource I'm short of?

Thanks,

Leo Bredehoft