What is the maximum size that maxReceivedMessageSize can be set to for a NetNamedPipeBinding?

后端 未结 3 1344
难免孤独
难免孤独 2020-12-24 05:40

I noticed that 2147483647 seems to be a popular choice for maxReceivedMessageSize but is this the limit?

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 06:24

    MaxMessageReceivedSize in basicHttpBinding appears to be an int32 - setting it over the max value of an int32 results in:

    This factory buffers messages, so the message sizes must be in the range of an integer value. Parameter name: bindingElement.MaxReceivedMessageSize

提交回复
热议问题