如何强制IIS 7刷新输出? [英] How can I force IIS 7 to flush output?

查看:138
本文介绍了如何强制IIS 7刷新输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS 6中,使用Perl,我能够将一个输出流发送到客户端,而不是缓冲整个事情并将其全部转储出去。这允许使用进度条等等。

In IIS 6, using Perl, I was able to send a stream of output to the client rather than buffering the entire thing and dumping it out at all once. This allowed such things as progress bars and such to be used.

如何在IIS 7中完成相同的操作?

How can I accomplish the same thing in IIS 7?

推荐答案

在IIS 7下,一旦创建了Perl脚本脚本映射,就可以添加一个可以解决此问题的属性。

Under IIS 7, once you have created the Perl Script script mapping, you can add an attribute that will fix this.

您修改%windir%\system32 \inetsrv \ config \ applicationHost.control文件并按名称查找脚本映射(在我的示例中为Perl-Script)。然后将responseBufferLimit属性添加到XML中,例如:

You modify the %windir%\system32\inetsrv\config\applicationHost.control file and find the script mapping by name (in my case, Perl-Script). Then add the responseBufferLimit attribute into the XML, for example:

<add name="Perl-Script" path="*.pl" blah blah blah responseBufferLimit="0" />

这会导致IIS像在IIS 6中一样运行,并暂停缓冲。

This causes IIS to run as it did in IIS 6, with buffering off.

这篇关于如何强制IIS 7刷新输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆