首頁
查看“Adjusting IIS Adjustments”的源代码
←
Adjusting IIS Adjustments
跳转至:
导航
、
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
A lot of web sites offer a way for users to publish material directly by way of a Internet visitor, but having less interactivity amongst the client, the remote machine combined with the individual does not ensure it is easy. For one, there's minimum feedback through the entire upload method, and in some instances the only real feedback you get after having a especially extended upload is basically an awful error.Still, uploading files by way of the browser has develop into a widely-accepted means of file transfer as a result of truth users favor its convenience, as opposed to mucking around with File Transfer Protocol (FTP ).Even although that is generally recognized, it does not guarantee protection from troubles. One issue Microsoft's Internet Information Server ([http://www.lgnetworksinc.com/windows-server-2008-consulting/ Windows Server]) has-been recognized to have-when working with file uploads, is a timeout error that'll buzz out when adding a file bigger than 48K. In some cases this only outcomes in a damaged upload, but other times it can put the browser into a cycle where it keeps trying to resend data since there is no normal answer for this specific scenario.The reason for the slipup has to do with the way IIS deals with input from a customer that's designed for a request, like an ASP. Each time a client starts submitting data, IIS says the first 48K right into a buffer, which is then offered to the application for processing reads the first 48K in to a load, which is then handed down to the applying for control, each time a customer begins submitting information. Such a thing beyond this 48K rests within the network outlet and stays there until the application specifically requests it - typically using a demand like Request.BinaryRead( Request.TotalBytes). Then the rest of the data still sitting in the socket connection is treated as a whole new request from the customer, if it doesn't be requested by the application. This generally speaking effects in a 413 mistake that says Request thing too large.Generally, this type of situation could be eliminated with good development techniques, as explained above, but particular situations may possibly call for particular property settings. For instance, if you are applying a web-page where the uploads are being prepared by a third-party ISAPI extension that does not follow such practices, some tweaking of the 48K limit might be in order. That restriction isn't set in stone, but is rather a soft default set by IIS by means of a house called UploadReadAheadSize. The standard is 49152K, but you may push this as much as as large as 4GB if needed. It could even be set on a person web-page or for the entire IIS support if need be.This may perhaps maybe not be the only property you ought to set. You can also want to change the maxRequestLength (in IIS 6) or maxAllowedContentLength (in IIS 7+) capability to permit for a bigger upload size, although defaults are set fairly high for both.In some situations, it truly allows to set UploadReadAheadSize explicitly to zero. That makes IIS to supply the articles of the submission straight to the ISAPI extension processing the request. It will be worth it to test this first to find out if it resolves the problem, but watch for achievable side effects from IIS applications that do not deal well with all the read-ahead barrier made off.Finally, bear in mind that increasing UploadReadAheadSize can form an attack vector. If an individual chooses to bombard one's body with submissions that only consume up bandwidth, they'll be able to do it more simply with this setting's threshold ramped up. To avoid problems, use a logically quality that reflects the size of uploads users will probably make to a site and when doable, insist on some form of verification from the client before allowing uploads to make sure they come from a trusted party.
返回至
Adjusting IIS Adjustments
。
导航菜单
个人工具
登录
命名空间
页面
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息