Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2006

Tip: Looking for answers? Try searching our database.

Asynchronous call question- app isn't doing what I expect.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobGSCL - 27 Oct 2006 03:58 GMT
I suspected that the comm routine in my compact framework app wasn't
acting asyncronously, so I remodelled it using a simple hello world
service with a 5 second sleep.  I call the same begin method
sequentially ten times.  What I expect to see is the end method fire
after 5 seconds somewhat sequentially.  I don't.  I see two returns
after 5 seconds, followed by two more after another 5 seconds and so on
until done.  I added a beep to my sleepy hello world and it beeps
immediately before the mobile app end method is called.  So why is the
web service hanging on to the calls instead of sending them out all at
once.  Is it controlled by my cf app, the web service, or IIS?

TIA
Rob
RobGSCL - 27 Oct 2006 19:47 GMT
Ran a network trace and it appears the client is delaying the release
of the requests.  Is there a setting that controls this?

TIA
Rob
John Saunders - 28 Oct 2006 13:13 GMT
> Ran a network trace and it appears the client is delaying the release
> of the requests.  Is there a setting that controls this?

How many connections were open at one time? Two?

John
RobGSCL - 30 Oct 2006 16:57 GMT
> > Ran a network trace and it appears the client is delaying the release
> > of the requests.  Is there a setting that controls this?
>
> How many connections were open at one time? Two?
>
> John

There was a connection for each, but for some reason it "recycled" one
from a previous call.

I did another experiment with varying sleep times.  I first fired off a
series of simple helloworlds followed by a sequence of sleepy
helloworlds with varying sleep times.  When I changed the number of
simple hello worlds, it changed the order of the returns for the sleepy
hello worlds.  The return order was always the same if the number of
simple helloworlds was the same.

The WS client in .netCF must control the connection somehow.  I can't
seem to find a way to modify it's behavior.

Rob

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.