Dirk Meyer wrote:
> Duncan Webb wrote:
>> Will you try with the webserver, nothing to configure except a
>> user/password.
>>
>> The call below does not work
>> (status, schedule) = RecordClient().getScheduledRecordingsNow()
> 
> No, it does not. RecordClient() starts the kaa.rpc2 connection but it
> takes a while until it is connected. So getScheduledRecordingsNow is
> called when there is no connection yet. The record_client.py main code
> uses:
> 
> | rc = RecordClient()
> | kaa.inprogress(rc.channel).wait()
> 
> It waits until the client is connected. Just like you wait for the
> result in getScheduledRecordingsNow, you need to wait until the channel
> is ready. In a perfect world the RecordClient object is created on
> startup and after that just used. The connection will be open the whole
> time. Notice: if you stop and start the record server, kaa.rpc2
> reconnects itself. I suggest you create the RecordClient when Freevo or
> the webserver starts. By doing that you can be sure that the client is
> connected when the server is running.

Okay thanks dischi, I should have realised this from the patch. It does
take quite a long time to connect ~200 msecs. For a quick test I added
kaa.inprogress(rc.channel).wait() into the RecordClient class and now
the webserver works as expected.

Duncan

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to