Why does the MaxReceiveMessageSize in WCF matter in case of Streaming
Posted
on Dot net Slackers
See other posts from Dot net Slackers
Published on Sat, 13 Mar 2010 00:00:00 GMT
Indexed on
2010/03/13
23:55 UTC
Read the original article
Hit count: 389
Filed under:
The default value of MaxReceiveMessageSize in WCF is 65,536. When you choose streaming as TransferMode, WCF runtime will create 8192 as buffer size. So what happened now is that WCF channel stack will read the first 8192 bytes, and decode the first couple of bytes as the size of the entire envelope. Then we will do a size check, and send back fault if the actual size exceeds the limit.
According to MSDN documentation, the MaxReceiveMessageSize is something that prevents a DOS attack,...
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
© Dot net Slackers or respective owner