TINI seems to loose TCP [SYN]
Richard <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Dear TINI support, I am trying to get working an HTTP server written in C. I use Dallas example from the ftp server and I load an HTML page stored in flash. This page display 3 images also stored in flash. The init_rom function takes about 64kB of memory. The problem I get is this one : my browser asks for the HTML page. This is ok. Then the browser see 3 images on the HTML page ; so it tries to request them (sends 3 TCP [SYN] at once), but it only gets the reply for the first image ([SYN ACK] then [ACK] then the browser do the HTTP GET request then ...). The others [SYN] requests seems to be lost, so the TCP connection can't start and there is no other HTTP GET request. Using acceptqueue() function to look at pending connections confirms there is no more request to handle. But it should have ! 3 seconds after this problem, the web browser do [SYN] requests again for the lacking 2 images. Then the DS80C400 is able to send the 2 last images correctly. So it seems the wait socket is missing some request from my web browser. Increasing the memory from 64kB to 128kB solves the problem but in my final application, I need to load many images, and the problem remains the same. Does the listen() function need a lot of memory to store all pending requests ? (how many ?) Or is it a speed issue ? Any other idea ? Note that : I need to use HTTP1.0 so there is no persistant connection (after each file sent, the TCP connexion is closed). Images are small enought to fit into this memory (2kB + 630B + 6kB). The TCP queue is large enought to contain all my web browser requests and is never full. Thanks, Richard P.S. I can send the Ethereal log or part of my program if necessary (however my program is the same as Dallas example except it handles images). _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini