I always thought, that the WCF BasicHttpBinding option MaxBufferSize
is intended to protect me from DoS attacks, however, the following note in the documentation is weird:
If a message exceeds the maximum value set for the buffer, it is not dropped. Instead, more memory is requested from the CLR heap and this incurs more garbage collection overhead than using the buffers.
So it looks like the property MaxBufferSize
is more of a default value and not a MaxBufferSize. Do I miss something?