Jason Tackaberry wrote:
> On Sun, 2009-02-15 at 15:29 +0100, Duncan Webb wrote:
>> Sorry, a typo, should have been ~20 msecs.
> 
> Do you still feel that's too slow?

No, certainly not, the connection time usually doesn't impact the
general performance of freevo as it is only performed once.

>> When the recordserver is down the exception AsyncException is raised; is
>> it okay to import kaa.async so that the exception can be trapped?
>>
>> It doesn't seem the usual way to get a exception class.
> 
> The only time you should need to import kaa.async for AsyncException is
> when you want to subclass it.
> 
> AsyncException objects behave like the underlying exception they wrap.
> So if you have an AsyncException that wraps a KeyError exception, you
> can catch KeyError.

Actually catching the exception didn't help when the recordserver is not
running. Is there a signal that should be caught when the recordserver
is down and if so what is it called?

>>   File "/usr/lib/python2.6/site-packages/kaa/main.py", line 301, in
>> signal_handler
>>     notifier.shutdown()
>>   File "/usr/lib/python2.6/site-packages/kaa/nf_wrapper.py", line 134,
>> in shutdown
>>     sys.exit(0)
>> exceptions.SystemExit: 0
> 
> I guess signal_handler() in main.py should catch and ignore SystemExit
> and KeyboardInterrupt.  dischi what do you think?


Trying to catch SystemExit doesn't do anything from the application code.

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
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to