sanjay yadav

sanjay yadav

  • NA
  • 402
  • 737

how to avoid time out error in wcf service

May 21 2018 1:07 AM
 HI
I have developed WCF windows service using TCP binding. COnfiguration is as below
 
<netTcpBinding>
<binding name="NetTcpEndPoint" receiveTimeout="00:15:00" sendTimeout="00:15:00" openTimeout="00:15:00" closeTimeout="00:15:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" transferMode="Streamed" portSharingEnabled="true">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxNameTableCharCount="2147483647" maxBytesPerRead="67108864" />
<security mode="None">
<transport clientCredentialType="None" protectionLevel="None" />
<message clientCredentialType="None" />
</security>
</binding>
</netTcpBinding>
 
in WCF service we are calling API .some times API takes time to return response and WCF service returns time out error . Can we do some thing to avoid time out in servvice 
 
Regards,
 

Answers (1)