|
From: David K. <da...@em...> - 2011-09-25 01:02:18
|
There is also a limit to the number of simultaneous tcp connections. if you
exceed that the webserver will issue a reset in response to the next SYN.
Then you have to wait 60 seconds for a tcp connection to time out.
In firefox you can set the connections per server to one with about:config,
filter for connections, change default from 15 to 1, then the images will be
loaded sequentially.
In general, run Wireshark on the interface to see why the images are not
being served.
-----Original Message-----
From: tora
Sent: Saturday, September 24, 2011 8:21 PM
To: con...@li... ; "David Kopf"
Subject: Re: [Contiki-developers] Question about webser performance
Hi David,
Thanks for your reply.
I have noticed the length of finename before, and modified code like this:
#define HTTPD_INPUT_BUF_LEN 127
#define HTTPD_FILE_NAME_LEN 31
struct httpd_state {
...
char inputbuf[HTTPD_INPUT_BUF_LEN + 1];
char filename[HTTPD_FILE_NAME_LEN + 1];
...
}
The question is about the performance, maybe I did not describe it clearly.
1. Drag much_pics.htm into IE browser, it works well. This case is static
mode, which no webserver involved.
2. Type URL http://10.1.1.1/samples/much_pics.htm in IE browser, some of
pics cannot display.
3. Click "refresh" button of IE brower more times, the pics lost in step 2
will display.
4. Repeat step 2 some times, the pics lost are different for each time.
When browser get the much_pics.htm, it will send another 11 HTTP GET message
for 11 .gif files to WEB server. Is it possible that WEB server deny some of
TCP sync?
Best,
Tiger
>
> Message: 1
> Date: Sat, 24 Sep 2011 09:44:43 -0400
> From: "David Kopf" <da...@em...>
> Subject: Re: [Contiki-developers] Question about webser performance
> To: <con...@li...>
> Message-ID: <1B28AF456CEB490ABEDA79AE027E5E22@Ginger>
> Content-Type: text/plain; format=flowed; charset="gb2312";
> reply-type=original
>
> There is a 20 character limit on path and filename length, including the
> initial / and trailing zero, set in httpd.h:
> struct httpd_state {
> ...
> char filename[20];
>
> (That's why tictactoe files are named e.g. /ttt/bc.gif)
>
> From: tora
> Sent: Saturday, September 24, 2011 4:47 AM
> To: con...@li...
> Subject: [Contiki-developers] Question about webser performance
>
>
>
> Hi Contiki developers,
>
> I have test the WEB server on platform minimal-net which located in
> examples\webserver. Here is my steps:
>
> 1. Create a folder "samples" in contiki-2.4\apps\webserver\httpd-fs.
> 2. Created a new file "much_pics.htm" which display 11 .gif pictures.
> Put the 11 .gif files in sampls folder. There files are all very small.
> 3. In static mode, I double click much_pics.htm, it works well.
> 4. Type URL http://10.1.1.1/samples/much_pics.htm in IE browser, some of
> pics cannot display.
>
> The attached is the samples folder zip file. Pls have a review. Thanks a
> lot!
>
> Best,
> Tiger
>
>
|