简体   繁体   English

在wshttpbinding中没有WCF最大响应消息大小设置?

[英]no WCF max response message size setting in wshttpbinding?

I am surprised to see that no WCF max response message size setting in wshttpbinding? 我很惊讶地发现在wshttpbinding中没有WCF最大响应消息大小设置? My question is whether there is max response message size setting in wshttpbinding? 我的问题是wshttpbinding中是否有最大响应消息大小设置? I am using .Net 3.0 + C# + VSTS 2008. 我正在使用.Net 3.0 + C#+ VSTS 2008。

BTW: I have found max request message size setting and tested it works. 顺便说一句:我发现最大请求消息大小设置并测试了它的工作原理。

thanks in advance, George 预先感谢乔治

I assume this means there is no restriction on the size of message you can send. 我认为这意味着您可以发送的邮件大小没有限制。

Basically maxReceivedMessageSize is there to protect your server from DoS attacks using long messages. 基本上,存在maxReceivedMessageSize可以保护您的服务器免遭使用长消息的DoS攻击。 There is not the same need for a limit to the size of the response message, as that's under your control. 对响应消息大小的限制并不需要同样的限制,因为这由您控制。

A client may of course want to set maxReceivedMessageSize to avoid excessively long message from a rogue server. 客户端当然可能希望设置maxReceivedMessageSize以避免来自恶意服务器的消息过长。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM