WCF throttling and emptying the listenBacklog quickly
        Posted  
        
            by 
                user1161625
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1161625
        
        
        
        Published on 2012-04-03T23:26:56Z
        Indexed on 
            2012/04/03
            23:28 UTC
        
        
        Read the original article
        Hit count: 334
        
wcf
|Throttling
I'm sort of a WCF newbie (inheriting tasks from someone) and I'm trying to better throttle my application.
We have a service that sends print jobs to the Windows print queue and it seems that rather than dumping all of the jobs into the queue it holds on to them in the listenBacklog and slowly releases them to the Windows print queue. Here is my throttling behavior:
        <behavior name="throttling">
            <serviceThrottling maxConcurrentCalls="144" maxConcurrentSessions="1168" />
            <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true"/>
        </behavior>
I'm using a custom binding for this service also which is here:
  <customBinding>
    <binding name="oneWayPrintBinding" receiveTimeout="00:30:00">
      <reliableSession maxPendingChannels="16" inactivityTimeout="01:30:00" />
      <binaryMessageEncoding>
        <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" />
      </binaryMessageEncoding>
      <tcpTransport maxReceivedMessageSize="67108864" listenBacklog="1024" />
    </binding>
  </customBinding>
Any recommendations would be very helpful. Thank you!
-Jim
© Stack Overflow or respective owner