[En-Nut-Discussion] Browser Problems
Harald Kipp
harald.kipp at egnite.de
Tue Jun 7 15:27:41 CEST 2005
Hi Martin,
No idea how many concurrent connections are used by
standard browsers. From my experience 4 threads
behave quite well.
But the original problem remains. Nut/OS doesn't support
a connection queue. TCP stacks for the desktop PC delay
connection requests until a thread/process is ready to
take over. The number of queue connection request (backlog)
is adjustable and typically set to 5 by default. On Nut/OS
a reject is sent as an immediate response, in which case
the browser gives up.
It may help to delay (NutSleep) http responses if more than
one service thread is active (tracked by a global counter).
But that's just an idea.
Another idea is, to add a minor modification to the stack
without implementing a full backlog queue. If no socket is
ready, the state machine may not reject the connection
immediately but try one more time after a certain delay.
As far as I understood the mechanics, the browser will
not initiate another connect before the previous one has
been established or rejected.
Harald
At 11:46 07.06.2005 +0200, you wrote:
>Hi,
>
>I m using NutOS Ver 3.9.7.1 and have some problems to
>connect with Mozilla and Internet Explorer to the webserver.
>
>Often some pictures on the html page or the stylesheet
>won`t be loaded.
>
>When I use the Opera Browser the problem won`t appear.
>
>So I ve traced the communication on the ethernet. It seems
>that Mozilla and Opera try to use multiple connections to
>access the html page and Opera use only one.
>
>If I increase the number of http threads(I use only one) this will fix
>
>the problem (maybe for a while but I don`t know how many connections
>will be used!). But this will cause resource problems for my project.
>
>Does somebody have an idea to solve this problem without increasing
>the number of http threads.
>
>Thanks a lot,
>Martin
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list