CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

Multiple simultanious connections

Last post 09-05-2008, 12:31 AM by RockfordLhotka. 1 replies.
Sort Posts: Previous Next
  •  09-04-2008, 10:18 PM 25949

    • Cine is not online. Last active: 09-07-2008, 9:41 PM Cine
    • Top 500 Contributor
    • Joined on 03-26-2008
    • HCMC, Vietnam
    • Posts 17
    • Points 250

    Multiple simultanious connections

    I noticed that the current Silverlight dataportal only allows a single connection to the server at any one time.
    I presume this is due to the limitation of max 2 connections imposed by silverlight/browser at the same time?
    Are you planning on implementing a way to get around this limitation? E.g. have a proxy which is capable of utilizing e.g. 26 (52) connections by round-robin on a.www.website.com to z.www.website.com instead of just www.website.com?
  •  09-05-2008, 12:31 AM 25951 in reply to 25949

    Re: Multiple simultanious connections

    It is actually due to a bug in the WCF stack on Silverlight, where multiple simultaneous connections to the same server may (and does) result in random 404 errors on some of the requests.

    Sometimes they work, sometimes they fail, you can't predict. Nor can you do anything about them...

    So we put a (hopefully temporary) workaround into the data portal so it only allows one request at a time. This solves the issue, but obviously isn't ideal.

    On the upside, in most business apps you aren't doing a lot of simultaneous requests anyway. Get a customer, save a customer, get an order, save an order.

    Early in an app's lifetime there are probably a lot of NVL objects and maybe some read-only lists, being loaded and cached - so this hurts that process. But for most of an app's lifetime only one request is occurring at a time anyway.

    Not that I want to keep this workaround!!!! I'm just saying it isn't the end of the world.


    Rocky
View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems