Print Page | Close Window

Polling Duplex with 1 seconds interval

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3413
Printed Date: 05-Feb-2026 at 2:44pm


Topic: Polling Duplex with 1 seconds interval
Posted By: rasmus
Subject: Polling Duplex with 1 seconds interval
Date Posted: 27-Apr-2012 at 2:49am
Hi
 
I have downloaded your sample from http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-push-notification - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-push-notification  for SL. If I change the sample to push to the client every 1 second instead of 5, the app does not work. I am aware that I probably need to change som settings for the polling duplex binding. Can you show me a web.config file for the sample where this is setup?
 
Thanks,
 
Rasmus



Replies:
Posted By: kimj
Date Posted: 27-Apr-2012 at 12:03pm
We haven't seen this problem in our own testing, but the polling duplex binding is known to be somewhat quirky and you may see different behaviors with different browsers.  I've attached a sample with both web.config and ClientConfig files here - http://www.ideablade.com/forum/uploads/11/PushWithConfigs.zip - uploads/11/PushWithConfigs.zip .  I would focus on the MaxOutputDelay setting on the server, as I've seen some references to that causing a problem if it's set lower than your send interval. 
 
Here's some more information on the various config settings you can work with -
http://blogs.msdn.com/b/silverlightws/archive/2010/06/25/http-duplex-improvements-silverlight-4.aspx - http://blogs.msdn.com/b/silverlightws/archive/2010/06/25/http-duplex-improvements-silverlight-4.aspx
http://blogs.msdn.com/b/silverlightws/archive/2010/07/16/pollingduplex-multiple-mode-timeouts-demystified.aspx - http://blogs.msdn.com/b/silverlightws/archive/2010/07/16/pollingduplex-multiple-mode-timeouts-demystified.aspx
 
You can also set these in code via the ServiceProxyEvents and SerivceHostEvents classes, but I don't have a sample available for Push at the moment.  You can read more about these classes here - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-client-configuration - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-client-configuration  and http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-server-configuration - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-server-configuration .
 
 



Print Page | Close Window