Hi David! Could you disable keep-alive and see what happens, please?
/* Keep the connection open only if we have Content-Length set */
+ do_close = 1;
On Tue, Nov 25, 2008 at 4:04 AM, Henryla <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I also encountered the socket error problem in embedded system. (on a very
> busy system...)
> My solution is to remove the keep-alive feature and it runs well.
>
> This work around may solve this issue temporarily, but without
> 'keep-alive'. :)
>
> BR,
>
> Henry
>
>
>
>
> On Tue, Nov 25, 2008 at 8:06 AM, Sergey Lyubka <[EMAIL PROTECTED]> wrote:
>
>> Maybe shttpd is leaking file descriptors?
>> I currently work on the next version of shttpd, which will use
>> thread-per-connection model, thus the code will be more simple. I am not
>> very active in fixing bugs because of that.
>> I'll try to search for good win32 profiler, that shows resource leaks, and
>> test shttpd against it.
>>
>>
>> On Mon, Nov 24, 2008 at 10:41 PM, David Lethe <[EMAIL PROTECTED]> wrote:
>>
>>> I'm using the standard 1.42 version of shttpd and am getting errno 10054
>>> under windows repeatedly after an application runs for a while.
>>> Specifically in process_connection function, the call to read_stream
>>> fails with err #10054 because it can't read from the socket anymore.
>>>
>>> The only thing that is somewhat unusual is that the HTML is using extjs
>>> and the page is refreshing once a second, and there is quite a bit of
>>> javascript due to the extjs library. But I've checked and there are no
>>> memory-related issues with the JavaScript (as far as I can tell) -- but
>>> I am going to retest with another web server, just to make sure in the
>>> interim.
>>>
>>> The problem can be reproduced on multiple PC's , all running XP, and it
>>> doesn't matter what O/S browser combination is used for the web browser.
>>>
>>> I have fiddled with the ctx_polling polling frequency, changed from
>>> 100ms to 100seconds, just to see if this makes any difference. It
>>> doesn't seem to make a difference. Sometimes the app runs for 30 mins,
>>> sometimes 4-5 hours before the socket closes, and this happens on
>>> multiple machines.
>>>
>>> Below is the shttpd.conf file. Nothing fancy going on, and I'm not
>>> doing any threading.
>>>
>>> # SHTTPD web server configuration file.
>>> # Lines starting with '#' and empty lines are ignored.
>>> # For detailed description, visit
>>> http://shttpd.sourceforge.net/shttpd.1.txt
>>>
>>> root C:\msdevstd\projects\VideoAgent\vc2005\Release\HTML
>>> ports 4079,4080
>>> dir_list no
>>> index_files index.htm,index.html
>>> aliases
>>> /extjs=C:\msdevstd\projects\VideoAgent\vc2005\Release\extjs,/images=C:\m
>>> sdevstd\projects\VideoAgent\vc2005\Release\images,/icons=C:\msdevstd\pro
>>> jects\VideoAgent\vc2005\Release\icons,/data=root
>>>
>>> Any ideas, or suggestions on a fix?
>>>
>>> David
>>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> shttpd-general mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/shttpd-general
>>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> shttpd-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/shttpd-general
>>
>>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general