> -----Original Message----- > From: David Lethe > Sent: Monday, November 24, 2008 4:42 PM > To: '[email protected]' > Subject: shttpd 1.42 read_stream errors crashing > > 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,/imag > es=C:\msdevstd\projects\VideoAgent\vc2005\Release\images,/icons=C:\msde > vstd\projects\VideoAgent\vc2005\Release\icons,/data=root > > Any ideas, or suggestions on a fix? > > David Forgot to send the rest .. I tried commenting out set_non_blocking_mode() calls from socketpair, as suggested by Sergey on 2008-06-08, in regards to the SHTTPD cgi troubles bug. It did not resolve the problem.
Below is last part of the dump before the socket closed. ============================================================== ] decide_what_to_do: [/people-list.txt?_dc=1227569175057] is_alias: aliases [/extjs=extjs,/images=images,/icons=icons,/data=root] open_auth_file: open(HTML/.htpasswd) loc: 191 [HTTP/1.1 200 OK Date: Mon, 24 Nov 2008 17:26:14 GMT Last-Modified: Mon, 24 Nov 2008 17:22:47 GMT Etag: "492b3747.3d" Content-Type: text/plain Content-Length: 61 Accept-Ranges: bytes ] rem: 0 [] write_stream (1888 socket): written 191/191 bytes (errno 0) loc: 0 [] rem: 0 [] read_stream (1888 file): read 61/61/61 bytes (errno 0) 1888 (null) stopped. 61 of content data, 61 now in a buffer write_stream (1888 socket): written 61/61 bytes (errno 0) Disconnecting 1888 (Keep-Alive) read_stream (1888 socket): read 488/16384/488 bytes (errno 0) Conn 1888: parsing request: [GET /people-list.txt?_dc=1227569176159 HTTP/1.1 Accept: */* Accept-Language: en-us Referer: http://localhost:4079/index5.html x-requested-with: XMLHttpRequest UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath. 2; .NET CLR 3.5.21022; FDM; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Host: localhost:4079 Connection: Keep-Alive ] parsing headers (len 439): [Accept: */* Accept-Language: en-us Referer: http://localhost:4079/index5.html x-requested-with: XMLHttpRequest UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath. 2; .NET CLR 3.5.21022; FDM; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Host: localhost:4079 Connection: Keep-Alive ] decide_what_to_do: [/people-list.txt?_dc=1227569176159] is_alias: aliases [/extjs=extjs,/images=images,/icons=icons,/data=root] open_auth_file: open(HTML/.htpasswd) loc: 191 [HTTP/1.1 200 OK Date: Mon, 24 Nov 2008 17:26:15 GMT Last-Modified: Mon, 24 Nov 2008 17:22:47 GMT Etag: "492b3747.3d" Content-Type: text/plain Content-Length: 61 Accept-Ranges: bytes ] rem: 0 [] write_stream (1888 socket): written 191/191 bytes (errno 0) loc: 0 [] rem: 0 [] read_stream (1888 file): read 61/61/61 bytes (errno 0) 1888 (null) stopped. 61 of content data, 61 now in a buffer write_stream (1888 socket): written 61/61 bytes (errno 0) Disconnecting 1888 (Keep-Alive) 1888 (null) stopped. 0 of content data, 0 now in a buffer read_stream (1888 (null)): read -1/16384/0 bytes (errno 10054) --- socket closed, this is bad, unless program just started. ERRNO=10054,RemMethod=1 ------------------------------------------------------------------------- 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
