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

后端 未结 3 1307
难免孤独
难免孤独 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:03

    Nope, the limit is Int64.MaxValue1 which is: 9223372036854775807

    0 讨论(0)
  • 2020-12-24 06:04

    MaxReceivedMessageSize and MaxBufferSize must same value and MaxBufferSize is Int32.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题