Re: freevo2 trunk: tvserver rpc address bind failure

John Molohan <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
  On 04/08/2010 3:57, Jason Tackaberry wrote:
> On Tue, 2010-08-03 at 14:37 -0700, Alain Péteut wrote:
>> DEBUG sockets(397): Replacing dead unix socket at /tmp/kaa-1000/('localhost',
>> 7600)
> Notice here that it's using a UNIX socket instead of a TCP socket.
>
>>    File
>> "/home/alain/freevo-test/lib/python2.6/site-packages/tvserver/scheduler/rpc.py",
>> line 64, in listen
>>      ip, port = config.rpc.address.split(':')
>> ValueError: need more than 1 value to unpack
> It looks like dischi assumed that you'd always use a TCP socket in the
> form 'host:port'.
>
> kaa.Socket (which is the underlying socket class in kaa that RPC uses)
> itself is very liberal in terms of what it accepts for address formats,
> but the tvserver constrains it to just host:port.
>
> However, while you can specify 'localhost:1234' to establish a
> connection, you couldn't specify a hostname for listening sockets, which
> is what the rpc.address config value defines.  That is, 127.0.0.1:1234
> was valid but localhost:1234 wasn't.
>
> I added support for this.  Try updating kaa.base.
>
>
>> Configuration:
>> ...
>> # | IP address and port to use for inter-process communication
>> rpc.address =  ('localhost', 7600)
>> ...
> One important thing to note is that with freevo2 and kaa, config files
> are, unlike Freevo 1.x, not Python scripts that are interpreted, so a
> value like "('localhost', 7600)" is treated as a string and happens to
> not be a valid form.
>
> The correct form is host:port.  So this should work:
>
>     rpc.address = 127.0.0.1:7600
>
> Now, you said you got a socket.error here:
>
>>>   rpc.address = 127.0.0.1:7600
>>> leads to
>>> socket.error: [Error 22]  Invalid argument
> This was actually the exception traceback I was more interested in,
> because this should have worked (and it worked for me).  Can you update
> kaa.base and try to reproduce?  If it still happens, please provide the
> traceback.
>
> With kaa.base r4305, you should now be able to specify:
>
>     rpc.address = localhost:7600
>
> This would also work, if you want to listen on all interfaces:
>
>     rpc.address = :7600
>
> Thanks!
Hi Jason,

Is the tvserver ready for use? Any pointers on how to get started and 
what is supported at the moment?

John

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.