From: Stephen D. <sd...@us...> - 2005-07-21 10:43:49
|
Update of /cvsroot/naviserver/naviserver/tests/testserver/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14639/tests/testserver/pages Added Files: http_chunked.adp Removed Files: ns_adp_chunked.adp ns_tcl_chunked.tcl Log Message: * tests/ns_adp_chunked.test: * tests/http_chunked.test: Rename tests which handle both Tcl and ADP. Add some more tests which highlight a few bugs. * tests/testserver/pages/ns_adp_chunked.tcl: * tests/testserver/pages/http_chunked.adp: Rename file. Handle streaming and non-streaming situations, and actually write out the data in two goes. Add a workaround for a bug in the ns_conn chunked switch: detect whether client is HTTP/1.1 and therefore handles chunked encoding. This needs to disappear altogether. * tests/testserver/pages/ns_tcl_chunked.tcl: Incorporate code directly into test file using ns_register_proc. --- ns_tcl_chunked.tcl DELETED --- --- NEW FILE: http_chunked.adp --- <% # This is redundant/broken -- should chunk if browser supports # chunked encoding and streaming is enabled. # if {[ns_conn version] == 1.1} { ns_conn chunked 1 } # If streaming is enabled but the browser does not support # chunked encoding, revert to Connection: close to mark # end of content. if {[ns_queryget stream 0]} { ns_adp_stream } # When streaming the buffer is flushed after each call to append. # Otherwise, everything is buffered and chunking is not required # as the content length is known. ns_adp_append 0123456789 ns_adp_append 01234 %> --- ns_adp_chunked.adp DELETED --- |