There is no rel-1 branch of kaa as it's new and you need the latest svn
of kaa.
The rel-1 branch is using kaa notifier as the event, timer, etc. We use
kaa.rpc along with Twisted for some of the record server calls.
The rel-1-7 branch uses the old stuff and Twisted
It looks like a bug in the kaa.notifier.
Duncan
According to this thread:
http://mail.python.org/pipermail/medusa-dev/2000/000586.html, the select
call can raise interrupted system call exceptions sporadically in the
select call. This must have been what was happening to me because if I
wrap the select call in a loop that catches and ignores the EINTR
errors, recordserver stops crashing.
Tried to update the tracker item with the attached patch, but SF seems
to be having problems today. Also submitted the attached patch to the
freevo-devel list.
-Doug Seifert
Index: kaa/base/src/notifier/pynotifier/nf_generic.py
===================================================================
--- kaa/base/src/notifier/pynotifier/nf_generic.py (revision 2907)
+++ kaa/base/src/notifier/pynotifier/nf_generic.py (working copy)
@@ -204,9 +204,18 @@
r = w = e = ()
try:
- r, w, e = select( __sockets[ IO_READ ].keys(),
+ # According to this thread: http://mail.python.org/pipermail/medusa-dev/2000/000586.html
+ # the select call can raise EINTR which is safe to ignore and retry. Should really
+ # shore this up with a retry counter that raises the EINTR after some number of loops
+ # so we can avoid an infinite loop
+ while 1:
+ try:
+ r, w, e = select( __sockets[ IO_READ ].keys(),
__sockets[ IO_WRITE ].keys(),
__sockets[ IO_EXCEPT ].keys(), timeout / 1000.0 )
+ except select.error, v:
+ if v[0] != EINTR: raise
+ else: break
except ( ValueError, select_error ):
log.exception( 'error in select' )
sys.exit( 1 )
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users