<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Simon McVittie Wrote:<BR>
<BR>
>> This should be fine, as long as your client and service are both<BR>>> implemented asynchronously (in the sense that we use that word in<BR>>> dbus-glib and dbus-python, anyway).<BR><BR>Hi Simon,<BR>
<BR>
Thanks for getting back to me on this mate, that really was a great explanation so thanks for your help, I'll get around to looking at the source for those other applications. You'll be pleased to hear I'm using Python too so that will no doubt make our lives a great deal simpler.<BR>
<BR>
I've done some more messing around with my code here to test what's going on, and it seems that my client is running asyncrousnelealenely. It is posting all the requests off to the service at the same time and then carrying on with its other jobs (for testing purposes this is just a print statement after the calls.) However, I'm wondering if my service isn't quite running right as it still seems to queue my calls.<BR>
<BR>
For instance, my client code looks like this:<BR>
<BR><FONT size=2>
<P align=left>remote_object.HelloWorld(</FONT><I><FONT face="" color=#00aa00 size=2>"<A href="http://www.someservice.com",dbus_interface='com.example.SampleInterface'">www.someservice.com"</I></FONT><FONT face="" size=2>,</P>
<P align=left>dbus_interface=</FONT><I><FONT face="" color=#00aa00 size=2>'com.example.SampleInterface'</A></I></FONT><FONT face="" size=2>,</P>
<P align=left>reply_handler=handle_hello_reply,</P>
<P align=left>error_handler=handle_hello_error)</P>
<P align=left> </P>
<P align=left></P>
<P align=left>remote_object.HelloWorld(</FONT><I><FONT face="" color=#00aa00 size=2>"<A href="http://www.someotherservice.com">www.someotherservice.com</A>"</I></FONT><FONT face="" size=2>,</P>
<P align=left>dbus_interface=</FONT><I><FONT face="" color=#00aa00 size=2>'com.example.SampleInterface'</I></FONT><FONT face="" size=2>,</P>
<P align=left>reply_handler=handle_hello_reply,</P>
<P align=left>error_handler=handle_hello_error)</P>
<P align=left> </P>
<P align=left></P>
<P align=left>remote_object.HelloWorld(</FONT><I><FONT face="" color=#00aa00 size=2>"<A href="http://www.anotherservice.com">www.anotherservice.com</A>"</I></FONT><FONT face="" size=2>,</P>
<P align=left>dbus_interface=</FONT><I><FONT face="" color=#00aa00 size=2>'com.example.SampleInterface'</I></FONT><FONT face="" size=2>,</P>
<P align=left>reply_handler=handle_hello_reply,</P>
<P align=left>error_handler=handle_hello_error)</P>
<P align=left> </P>
<P align=left></P>
</FONT><FONT color=#0000ff size=2>print</FONT><FONT size=2> </FONT><I><FONT color=#00aa00 size=2>"Made Calls"</FONT></I><BR>
<I><FONT color=#00aa00 size=2></FONT></I> <BR>
<FONT color=#00aa00 size=2><FONT face="" color=#000000>When I run this client code it prints "Made Calls" almost immediately and then over the next 10 seconds or so the service appears to call my callbacks and print the results of the calls to the screen, exactly as I would expect it too. However, If I change that first call to a web address I know doesn't work properly and will return really slowly then I don't get any callbacks called until the first web service call has timed out, then they are both called nice and quickly.</FONT></FONT><BR>
<FONT color=#00aa00 size=2><FONT color=#000000></FONT></FONT> <BR>
<FONT color=#00aa00 size=2><FONT face="" color=#000000>Do you see what I mean? My service appears to be quing my requests, which means that if one request runs slowly then it clogs up the queue.</FONT></FONT><BR>
<FONT color=#00aa00 size=2><FONT color=#000000></FONT></FONT> <BR>
<FONT color=#00aa00 size=2><FONT color=#000000>Thanks Simon, I appreciate your advice.</FONT></FONT><BR>
<FONT color=#00aa00 size=2><FONT color=#000000></FONT></FONT> <BR>
<FONT color=#00aa00 size=2><FONT color=#000000>Rob</FONT><BR></FONT><br /><hr />Everything in one place. <a href='http://www.windowslive.co.uk/get-live' target='_new'>All new Windows Live!</a></body>
</html>