I saw the light Silverlight Tip: Problems with polling duplex inactivitytimeout. - Alexey Zakharov's Blog

Silverlight Tip: Problems with polling duplex inactivitytimeout.

 Many people ask question why polling duplex session shutdown after 10 minutes in spite of polling duplex InactivityTimeout value is more than hour.

In private email Christopher Scrosati (Silverlight WS Team) told me that I've also should configure ReciveTimout.

Here is the code sample, which shows how to configure polling duplex correctly:

HttpTransportBindingElement http = new HttpTransportBindingElement();

BinaryMessageEncodingBindingElement binary = new BinaryMessageEncodingBindingElement();

PollingDuplexBindingElement polling = new PollingDuplexBindingElement();

polling.InactivityTimeout = TimeSpan.FromHours(1);

CustomBinding binding = new CustomBinding(polling, binary, http);

binding.ReceiveTimeout = TimeSpan.FromHours(1);

Hope it helps! Many thanks to Christopher =)

 

Published Friday, April 17, 2009 2:53 PM by brainbox
Filed under: , ,

Comments

# re: Silverlight Tip: Problems with polling duplex inactivitytimeout.

Friday, April 17, 2009 7:55 AM by Radenko Zec

Great posts.Just keep going good work.

Polling duplex is hot subject these days...

# re: Silverlight Tip: Problems with polling duplex inactivitytimeout.

Friday, April 17, 2009 8:42 AM by brainbox

Thanks Zec, Soon I'm going to experiment with SL socket and make some kind of comparison, because of many colleagues say that sockets are much faster.

# Silverlight Duplex Wrap-up | DavideZordan.net

Monday, April 27, 2009 9:04 AM by Silverlight Duplex Wrap-up | DavideZordan.net

Pingback from  Silverlight Duplex Wrap-up | DavideZordan.net

Leave a Comment

(required) 
(required) 
(optional)
(required)