On Aug 23, 1:07 am, Graham Dumpleton <[email protected]> wrote: > Can you use the Python script below to do some experiments. Sorry for the delay.. I finally got around to running the script. Here is the output with the script as you provided it: $ ./test_wsgi.py >>>>>>>>>> 0.0219419002533 <<<<<<<<<< HTTP/1.1 200 OK Date: Sat, 28 Aug 2010 00:01:55 GMT Server: Apache/2.2.12 (Ubuntu) Content-Length: 15 Vary: Accept-Encoding Content-Type: text/plain
Hello, world 2! >>>>>>>>>> <<<<<<<<<< >>>>>>>>>> 15.0363008976 <<<<<<<<<< Note that 15 seconds coincides with my Apache KeepAliveTimeout. To mimic Firefox's request, I added the "Accept-Encoding: gzip" request header (and added some formatting to the output to avoid garbled output due to the gzip stream): $ ./test_wsgi.py >>>>>>>>>> 0.00120186805725 <<<<<<<<<< HTTP/1.1 200 OK Date: Sat, 28 Aug 2010 00:10:25 GMT Server: Apache/2.2.12 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Transfer-Encoding: chunked Content-Type: text/plain 1f <1f><8b><08><00><00><00><00><00><00><03><f2>H<cd><c9><c9><d7>Q(<cf>/ <ca>IQ0R<04><00><00><00><ff><ff> >>>>>>>>>> <<<<<<<<<< >>>>>>>>>> 0.00269484519958 <<<<<<<<<< a <03><00><ee><e4>!<9b><0f><00><00><00> 0 >>>>>>>>>> <<<<<<<<<< >>>>>>>>>> 15.010876894 <<<<<<<<<< This response (chunked gzip encoding) is what Firefox shows in Firebug and where the bug occurs. Again, this is with embedded mode. In daemon mode, the response is gzipped, not chunked and Content-Length is present: $ ./test_wsgi.py >>>>>>>>>> 0.0237138271332 <<<<<<<<<< HTTP/1.1 200 OK Date: Sat, 28 Aug 2010 00:12:31 GMT Server: Apache/2.2.12 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 35 Content-Type: text/plain <1f><8b><08><00><00><00><00><00><00><03><f3>H<cd><c9><c9><d7>Q(<cf>/ <ca>IQ0R<04><00><ee><e4>!<9b><0f><00><00><00> >>>>>>>>>> <<<<<<<<<< >>>>>>>>>> 15.0311999321 <<<<<<<<<< Thanks for looking into this! Catalin -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
