WCF timeouts only when using binary serialization

We have a .NET 4.0 WPF client application that uses WCF to communicate with a server component (hosted in IIS). Most messages are executed using basicHttpBindingSOAP (Content-Type: text / xml); however, for performance reasons, one endpoint has been switched to using customBindingbinary serialization (Content-Type: application / soap + msbin1).

As a result, the old url that ended in ".svc" now has an additional "/ binary" extension, for example. ".svc / binary".

This works great for 2 years with no problems.

The other day I received a call from a client, and it seems that something is “blocking” calls that are created using this endpoint with binary support. What is strange is that they do not just fail directly - instead they time out - even when I extend the timeout for something as crazy as 5 minutes - the call ultimately ends. However, as soon as I get back to basicHttpBinding, almost automatically, everything will start to work perfectly!

Could this be network security software? Client configuration? IIS settings? I really don't know what can block this ...

Has anyone else experienced something like this?

Here is the user binding from the client configuration file:

<customBinding>
        <binding name="CustomBinding_IDataAccess" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:01:00" sendTimeout="00:01:00">
          <binaryMessageEncoding maxReadPoolSize="2147483647" maxSessionSize="2147483647" maxWritePoolSize="2147483647">
            <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
          </binaryMessageEncoding>
          <httpTransport transferMode="Streamed" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" useDefaultWebProxy="true"/>
        </binding>
      </customBinding>

, IIS : Request_Cancelled, Timer_EntityBody ..

.

+4

Source: https://habr.com/ru/post/1615797/


All Articles