Make ngx_pagespeed behave like mod_pagespeed with regard to Flushing (#1217)
This change makes ngx_pagespeed listen to the FollowFlushes option. When set to on (=default), ngx_pagespeed will forward incoming flushes to ProxyFetch. When writing output, we'll now also set the flush flag on the buffers we are about to send downstream. Companion to mps commit: https://github.com/pagespeed/mod_pagespeed/commit/02de03e825bbd1f8d4ad4e1a1bef5263a16f3857
This commit is contained in:
committed by
Maks Orlovich
parent
e542347a20
commit
ebe7c61f4f
@@ -1309,6 +1309,12 @@ OUT=$(http_proxy=$SECONDARY_HOSTNAME $WGET_DUMP -O /dev/null -S $URL 2>&1)
|
||||
MATCHES=$(echo "$OUT" | grep -c "Vary: Accept-Encoding") || true
|
||||
check [ $MATCHES -eq 1 ]
|
||||
|
||||
start_test Follow flushes can be turned off.
|
||||
echo "Check that FollowFlushes off outputs a single chunk"
|
||||
URL="http://noflush.example.com/mod_pagespeed_test/slow_flushing_html_response.php"
|
||||
check_flushing "curl -N --raw --silent --proxy $SECONDARY_HOSTNAME $URL" \
|
||||
5.4 1
|
||||
|
||||
start_test Shutting down.
|
||||
|
||||
# Fire up some heavy load if ab is available to test a stressed shutdown
|
||||
|
||||
Reference in New Issue
Block a user