Bug 2217 - mutliple async http requests can't be issued at the same time
: mutliple async http requests can't be issued at the same time
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.2.0
: Macintosh All
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-28 16:48 UTC by dan aronson
Modified: 2008-09-15 14:36 UTC (History)
0 users

See Also:
Category: ---


Attachments
Testing.pm plugin (1.10 KB, text/plain)
2005-09-30 12:49 UTC, dan aronson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dan aronson 2005-09-28 16:48:06 UTC
There are some globals hanging around such that multiple async http requests
can't be handled at the same time.
Comment 1 dan aronson 2005-09-29 13:53:33 UTC
The symptom of this bug is that multiple SimpleAsyncHTTP calls cannot be active 
at the same time.
Comment 2 Dan Sully 2005-09-30 11:28:22 UTC
Dan - I'm unable to reproduce this using the trunk. I've installed your Testing.pm:

2005-09-30 11:26:55.5584 in Testing init
2005-09-30 11:26:55.5602 SimpleAsyncHTTP: getting http://www.slimdevices.com
2005-09-30 11:26:55.5622 AsyncHTTP: Connecting to www.slimdevices.com
2005-09-30 11:26:55.6436 AsyncHTTP: Sending request:
GET / HTTP/1.1
Connection: close
Host: www.slimdevices.com
Icy-Metadata: 1
User-Agent: iTunes/4.7.1 (Macintosh; N; Mac OS X 10.4.2 (8C46); ppc-darwin; EN; utf8) SlimServer/
6.2b1/trunk
Cache-Control: no-cache
Accept: */*



2005-09-30 11:26:55.9843 SimpleAsyncHTTP(http://www.slimdevices.com) destroy called.
Comment 3 dan aronson 2005-09-30 12:49:06 UTC
Created attachment 879 [details]
Testing.pm plugin

This is a plugin example that shows the bug.

Run the server with --d_plugins,
if the SimpleAsyncHttp is working correctly you should get two printouts from
the callbacks (one for each get).  The second instantiation of SimpleAsyncHttp
wipes out the first one in progress.
Comment 4 Dan Sully 2005-10-05 17:25:00 UTC
Dan - fixed in subversion change 4553