Dirk Meyer wrote:
> Duncan Webb wrote:
>> 16:58:24,614 INFO     create thread notifier pipe
>> 16:58:24,622 DEBUG    IOChannel read data: channel=<socket._socketobject
>> object at 0xb68e4d14> fd=3 len=72
>> 16:58:24,631 DEBUG    Got initial challenge from server, sending response.
>> 16:58:24,645 DEBUG    IOChannel read data: channel=<socket._socketobject
>> object at 0xb68e4d14> fd=3 len=72
>> 16:58:24,647 DEBUG    Valid response received, remote authenticated.
>> function='getfavoritesnow' args=[]
> 
> Looks good. I guess the bug is:
> 
> | self.status = CONNECTING
> | yield kaa.inprogress(self)
> | # Python 2.4 code
> | self._connect_inprogress.get_result()
> | self.status = CONNECTED
> 
> Now we have the problem that the record_client connects before this
> code. Therefore the status is still CONNECTING. :(
> 
> Try the attached patch to kaa.base and let me know if it works.

it didn't quite work (BTW I'm testing with Python-2.6.1)

20:57:35,282 INFO     create thread notifier pipe
20:57:35,286 DEBUG    IOChannel read data: channel=<socket._socketobject
object at 0xb5b425dc> fd=9 len=72
20:57:35,295 DEBUG    Got initial challenge from server, sending response.
20:57:35,306 DEBUG    IOChannel read data: channel=<socket._socketobject
object at 0xb5b425dc> fd=9 len=72
20:57:35,308 DEBUG    Valid response received, remote authenticated.
2

Traceback (most recent call last):
  File "src/tv/record_client.py", line 470, in <module>
    kaa.inprogress(rc.channel).wait()
  File "/usr/lib/python2.6/site-packages/kaa/async.py", line 508, in wait
    return self.get_result()
  File "/usr/lib/python2.6/site-packages/kaa/async.py", line 430, in
get_result
    raise self._exception[1]
kaa.async.AsyncException: Exception raised asynchronously; traceback
follows:
  File "/usr/lib/python2.6/site-packages/kaa/thread.py", line 357, in
_execute
    result = self._callback()
  File "/usr/lib/python2.6/site-packages/kaa/callback.py", line 176, in
__call__
    result = cb(*cb_args, **cb_kwargs)
  File "/usr/lib/python2.6/site-packages/kaa/sockets.py", line 288, in
_connect
    sock.connect((host, port))
  File "<string>", line 1, in connect
error: [Errno 111] Connection refused

Duncan

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to