简体   繁体   English

wcf中的maxReceivedMessageSize和Streaming

[英]maxReceivedMessageSize and Streaming in wcf

I put maxReceivedMessageSize="52428800" transferMode="Streamed". 我把maxReceivedMessageSize =“52428800”transferMode =“Streamed”。 Shouldn't streaming be more benevolent toward that value? 流媒体不应该对这个价值更加仁慈吗? Stream is stream and so let it pull little by little. 流是流,所以让它一点一点地拉。 And yet later on there is "The maximum message size quota for incoming messages (52428800) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element..." 但是后来有“已超出传入邮件的最大邮件大小配额(52428800)。要增加配额,请在相应的绑定元素上使用MaxReceivedMessageSize属性...”

I know that streamed implies that the server's RAM won't be overloaded, but how is it else different from buffered? 我知道流式传输意味着服务器的RAM不会过载,但它与缓冲器有什么不同呢?

The maxReceivedMessageSize quota is a long value, so you can effectively set it to infinity (I'd be surprised if you can transfer more than 9,223,372,036,854,775,807 bytes, or about 8 exabytes - yes, I had to look up the one after peta). maxReceivedMessageSize配额是一个long值,这样可以有效地将其设置为无穷大(我会感到惊讶,如果你能传输超过9,223,372,036,854,775,807字节,或约8 艾字节 -是的,我不得不寻找地图一前一后)。 On streaming mode you can also set the maxBufferSize quota to limit how much data will be buffered in RAM at a given time. 在流模式下,您还可以设置maxBufferSize配额,以限制在给定时间在RAM中缓冲的数据量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM