views:

478

answers:

1

Hello everyone,

I am surprised to see that no WCF max response message size setting in wshttpbinding? My question is whether there is max response message size setting in wshttpbinding? I am using .Net 3.0 + C# + VSTS 2008.

BTW: I have found max request message size setting and tested it works.

thanks in advance, George

+1  A: 

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. 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.

Joe
Cool, thanks! I think we can choose to whether self-host or IIS host. Currently, I am using self-host, and I think your reply also applies to self-host scenario, correct?
George2
" also applies to self-host " - yes absolutely.
Joe