WCF request/response package size

前端 未结 1 1845
时光取名叫无心
时光取名叫无心 2020-12-18 15:18

I am wondering if there are configurable settings for restriction of the maximum request/respose data package size for WCF? I am using VSTS 2008 + WCF 3.5. I am self-host WC

相关标签:
1条回答
  • 2020-12-18 16:22

    Yes, the binding has properties for getting/setting max receive data bytes: check "maxReceivedMessageSize" property (representing the size in bytes).

    However, setting this to a big value could not be a good idea since if an error occures in the transport you have to resend the whole (big) message.

    Edit: Here you can find details about all binding configuration properties.

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