Greetings!
Currently, connection is kept alive only for static files and CGIs.
Embedded streams are always getting closed.

The reason is as follows: connection_destructor() function in shttpd.c
looks, should it close the connection or not. It always closes the
connection if client side did not set "Content-Length", since the server
would not know the message boundaries. This header is set for static files
(io_file.c) and CGIs (io_cgi.c). In all other cases, that header is not set
(the size of the reply is not known in advance).

This could be fixed by using chunked reply. If you're keen to get it
working, the patch is welcome :-)
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general

Reply via email to