This is the mail archive of the
mailing list for the eCos project.
HTTP and sockets
- From: "Rick Davis" <rickdavisjr at comcast dot net>
- To: "Ecos-Discuss \(E-mail\)" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 16 Feb 2004 15:40:05 -0500
- Subject: [ECOS] HTTP and sockets
I am working on an application that uses web pages that contain a lot of gif
images in them. If I go from page to page, every fourth access stalls. The
problem appears to be with the eCos socket processing. If I set the
CYGPKG_NET_MAXSOCKETS setting to 16, the problem occurs more often. Setting
it at 64 causes the problem to occur every fourth page. You then have to
wait about 30 seconds before you can access the pages again. It appears to
me that for some reason, the sockets aren't being closed immediately when
closed by the httpd thread. The browser opens a different socket to retrieve
each gif. Why aren't the sockets being freed up? I have tried setting
SOL_LINGER to off but that doesn't seem to help any.
Any help would be gratefully appreciated.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss