llarsson avatar image
0 Votes"
llarsson asked llarsson commented

Azure timeout + wcf / WCF-Azure-NetTCP-Keep-Alive-09f50fd9

A lot of old posts about how to deal with azure timeout in old forums that are now somewhat broken / broken links.

Is there any change in recommendations & where can i download wcf modifications/suggestions, can someone reupload wcf changes i.e
Edit: It does work with ServicePointManager.SetTcpKeepAlive - had fiddler running & eating it. Can it be used to more fine-grained control / better than other solutions?

Hi Alex,

Thanks for posting here.

The connection can be kept alive by either the application using techniques enlisted below or the PAAS and IAAS roles can be made part of a same virtual network, in which case the PAAS calls to the IAAS machine will not go via the load balancer and hence this will not apply.

[1] - Make sure the TCP connection is not idle. To keep your TCP connection active keeping sending some data before 240 seconds is passed. This could be done via chunked transfer encoding;send something or you can just send blank lines to keep the connection active.

[2] - If you are using WCF based application please have a look at below link:


[3] - If you are using TCP Sockets then you can also try ServicePointManager.SetTcpKeepAlive(true, 200000, 200000) might be used to do this. TCP Keep-Alive packets will keep the connection from your client to the load balancer open during a long-running HTTP request. For example if you’re using .NET WebRequest objects in your client you would set ServicePointManager.SetTcpKeepAlive(…) appropriately.

Hope this helps.

Girish Prajwal

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

bump - azure recommendations? code that was recommended in old forum?

0 Votes 0 ·

0 Answers