All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] prserv: make localhost work
       [not found] <16A04D855643B3E7.30479@lists.openembedded.org>
@ 2021-08-31  7:48 ` Yu, Mingli
  2021-08-31 15:01   ` Scott Murray
  0 siblings, 1 reply; 6+ messages in thread
From: Yu, Mingli @ 2021-08-31  7:48 UTC (permalink / raw)
  To: bitbake-devel, Martin.Jansa, scott.murray

From: Mingli Yu <mingli.yu@windriver.com>

After [1] introduced, the PR server doesn't work in docker when use
below setting like before.
PRSERV_HOST = "localhost:0"

And it's because the localhost is resolved to an ipv6 address ::1 as
the below bitbake-prserv shows.
 bitbake$ bitbake-prserv --start --host=localhost --port=42005
 bitbake$ cat prserv.log
    Traceback (most recent call last):
      File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 55, in <module>
        ret = main()
      File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 46, in main
        ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only)
      File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 226, in start_daemon
        run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
      File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 202, in run_as_daemon
        func()
      File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 224, in daemon_main
        server.serve_forever()
      File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 233, in serve_forever
        self.start()
      File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 144, in start_tcp
        self.server = self.loop.run_until_complete(server_coro)
      File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
        return future.result()
      File "/usr/lib/python3.8/asyncio/streams.py", line 94, in start_server
        return await loop.create_server(factory, host, port, **kwds)
      File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
        raise OSError(err.errno, 'error while attempting '
    OSError: [Errno 99] error while attempting to bind on address ('::1', 42005, 0, 0): cannot assign requested address

So add the extra logic to make the localhost resolved as expected to
make the PR service work especially in docker.

[1] 6a2b23e2 prserv: Replace XML RPC with modern asyncrpc implementation

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 lib/prserv/serv.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
index 68db3d3e..0a20b927 100644
--- a/lib/prserv/serv.py
+++ b/lib/prserv/serv.py
@@ -126,7 +126,7 @@ class PRServSingleton(object):
 
     def start(self):
         self.prserv = PRServer(self.dbfile)
-        self.prserv.start_tcp_server(self.host, self.port)
+        self.prserv.start_tcp_server(socket.gethostbyname(self.host), self.port)
         self.process = self.prserv.serve_as_process()
 
         if not self.prserv.address:
@@ -221,7 +221,7 @@ def start_daemon(dbfile, host, port, logfile, read_only=False):
     dbfile = os.path.abspath(dbfile)
     def daemon_main():
         server = PRServer(dbfile, read_only=read_only)
-        server.start_tcp_server(host, port)
+        server.start_tcp_server(ip, port)
         server.serve_forever()
 
     run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] prserv: make localhost work
  2021-08-31  7:48 ` [PATCH] prserv: make localhost work Yu, Mingli
@ 2021-08-31 15:01   ` Scott Murray
  2021-09-01  1:20     ` Yu, Mingli
  0 siblings, 1 reply; 6+ messages in thread
From: Scott Murray @ 2021-08-31 15:01 UTC (permalink / raw)
  To: mingli.yu; +Cc: bitbake-devel, Martin.Jansa

On Tue, 31 Aug 2021, mingli.yu@windriver.com wrote:

> From: Mingli Yu <mingli.yu@windriver.com>
>
> After [1] introduced, the PR server doesn't work in docker when use
> below setting like before.
> PRSERV_HOST = "localhost:0"
>
> And it's because the localhost is resolved to an ipv6 address ::1 as
> the below bitbake-prserv shows.
>  bitbake$ bitbake-prserv --start --host=localhost --port=42005
>  bitbake$ cat prserv.log
>     Traceback (most recent call last):
>       File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 55, in <module>
>         ret = main()
>       File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 46, in main
>         ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only)
>       File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 226, in start_daemon
>         run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
>       File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 202, in run_as_daemon
>         func()
>       File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 224, in daemon_main
>         server.serve_forever()
>       File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 233, in serve_forever
>         self.start()
>       File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 144, in start_tcp
>         self.server = self.loop.run_until_complete(server_coro)
>       File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
>         return future.result()
>       File "/usr/lib/python3.8/asyncio/streams.py", line 94, in start_server
>         return await loop.create_server(factory, host, port, **kwds)
>       File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
>         raise OSError(err.errno, 'error while attempting '
>     OSError: [Errno 99] error while attempting to bind on address ('::1', 42005, 0, 0): cannot assign requested address
>
> So add the extra logic to make the localhost resolved as expected to
> make the PR service work especially in docker.
>
> [1] 6a2b23e2 prserv: Replace XML RPC with modern asyncrpc implementation
>
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ---
>  lib/prserv/serv.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
> index 68db3d3e..0a20b927 100644
> --- a/lib/prserv/serv.py
> +++ b/lib/prserv/serv.py
> @@ -126,7 +126,7 @@ class PRServSingleton(object):
>
>      def start(self):
>          self.prserv = PRServer(self.dbfile)
> -        self.prserv.start_tcp_server(self.host, self.port)
> +        self.prserv.start_tcp_server(socket.gethostbyname(self.host), self.port)
>          self.process = self.prserv.serve_as_process()
>
>          if not self.prserv.address:
> @@ -221,7 +221,7 @@ def start_daemon(dbfile, host, port, logfile, read_only=False):
>      dbfile = os.path.abspath(dbfile)
>      def daemon_main():
>          server = PRServer(dbfile, read_only=read_only)
> -        server.start_tcp_server(host, port)
> +        server.start_tcp_server(ip, port)
>          server.serve_forever()
>
>      run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
>

Richard has picked up Martin's patch in master-next, I think that would
remove the need for this one?

Scott


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] prserv: make localhost work
  2021-08-31 15:01   ` Scott Murray
@ 2021-09-01  1:20     ` Yu, Mingli
  2021-09-01  1:31       ` [bitbake-devel] " Joshua Watt
  0 siblings, 1 reply; 6+ messages in thread
From: Yu, Mingli @ 2021-09-01  1:20 UTC (permalink / raw)
  To: Scott Murray; +Cc: bitbake-devel, Martin.Jansa



On 8/31/21 11:01 PM, Scott Murray wrote:
> [Please note: This e-mail is from an EXTERNAL e-mail address]
> 
> On Tue, 31 Aug 2021, mingli.yu@windriver.com wrote:
> 
>> From: Mingli Yu <mingli.yu@windriver.com>
>>
>> After [1] introduced, the PR server doesn't work in docker when use
>> below setting like before.
>> PRSERV_HOST = "localhost:0"
>>
>> And it's because the localhost is resolved to an ipv6 address ::1 as
>> the below bitbake-prserv shows.
>>   bitbake$ bitbake-prserv --start --host=localhost --port=42005
>>   bitbake$ cat prserv.log
>>      Traceback (most recent call last):
>>        File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 55, in <module>
>>          ret = main()
>>        File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 46, in main
>>          ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only)
>>        File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 226, in start_daemon
>>          run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
>>        File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 202, in run_as_daemon
>>          func()
>>        File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 224, in daemon_main
>>          server.serve_forever()
>>        File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 233, in serve_forever
>>          self.start()
>>        File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 144, in start_tcp
>>          self.server = self.loop.run_until_complete(server_coro)
>>        File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
>>          return future.result()
>>        File "/usr/lib/python3.8/asyncio/streams.py", line 94, in start_server
>>          return await loop.create_server(factory, host, port, **kwds)
>>        File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
>>          raise OSError(err.errno, 'error while attempting '
>>      OSError: [Errno 99] error while attempting to bind on address ('::1', 42005, 0, 0): cannot assign requested address
>>
>> So add the extra logic to make the localhost resolved as expected to
>> make the PR service work especially in docker.
>>
>> [1] 6a2b23e2 prserv: Replace XML RPC with modern asyncrpc implementation
>>
>> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>> ---
>>   lib/prserv/serv.py | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
>> index 68db3d3e..0a20b927 100644
>> --- a/lib/prserv/serv.py
>> +++ b/lib/prserv/serv.py
>> @@ -126,7 +126,7 @@ class PRServSingleton(object):
>>
>>       def start(self):
>>           self.prserv = PRServer(self.dbfile)
>> -        self.prserv.start_tcp_server(self.host, self.port)
>> +        self.prserv.start_tcp_server(socket.gethostbyname(self.host), self.port)
>>           self.process = self.prserv.serve_as_process()
>>
>>           if not self.prserv.address:
>> @@ -221,7 +221,7 @@ def start_daemon(dbfile, host, port, logfile, read_only=False):
>>       dbfile = os.path.abspath(dbfile)
>>       def daemon_main():
>>           server = PRServer(dbfile, read_only=read_only)
>> -        server.start_tcp_server(host, port)
>> +        server.start_tcp_server(ip, port)
>>           server.serve_forever()
>>
>>       run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
>>
> 
> Richard has picked up Martin's patch in master-next, I think that would
> remove the need for this one?

The patch from Martin is just make the error message specific, but 
localhost still does't work in docker with Martin's patch and this patch 
is used to make it work in docker.

Thanks,

> 
> Scott
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [bitbake-devel] [PATCH] prserv: make localhost work
  2021-09-01  1:20     ` Yu, Mingli
@ 2021-09-01  1:31       ` Joshua Watt
  2021-09-01  1:51         ` Yu, Mingli
  0 siblings, 1 reply; 6+ messages in thread
From: Joshua Watt @ 2021-09-01  1:31 UTC (permalink / raw)
  To: Yu, Mingli; +Cc: Scott Murray, bitbake-devel, Martin Jansa

On Tue, Aug 31, 2021 at 8:14 PM Yu, Mingli <mingli.yu@windriver.com> wrote:
>
>
>
> On 8/31/21 11:01 PM, Scott Murray wrote:
> > [Please note: This e-mail is from an EXTERNAL e-mail address]
> >
> > On Tue, 31 Aug 2021, mingli.yu@windriver.com wrote:
> >
> >> From: Mingli Yu <mingli.yu@windriver.com>
> >>
> >> After [1] introduced, the PR server doesn't work in docker when use
> >> below setting like before.
> >> PRSERV_HOST = "localhost:0"
> >>
> >> And it's because the localhost is resolved to an ipv6 address ::1 as
> >> the below bitbake-prserv shows.
> >>   bitbake$ bitbake-prserv --start --host=localhost --port=42005
> >>   bitbake$ cat prserv.log
> >>      Traceback (most recent call last):
> >>        File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 55, in <module>
> >>          ret = main()
> >>        File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 46, in main
> >>          ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only)
> >>        File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 226, in start_daemon
> >>          run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
> >>        File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 202, in run_as_daemon
> >>          func()
> >>        File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 224, in daemon_main
> >>          server.serve_forever()
> >>        File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 233, in serve_forever
> >>          self.start()
> >>        File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 144, in start_tcp
> >>          self.server = self.loop.run_until_complete(server_coro)
> >>        File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
> >>          return future.result()
> >>        File "/usr/lib/python3.8/asyncio/streams.py", line 94, in start_server
> >>          return await loop.create_server(factory, host, port, **kwds)
> >>        File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
> >>          raise OSError(err.errno, 'error while attempting '
> >>      OSError: [Errno 99] error while attempting to bind on address ('::1', 42005, 0, 0): cannot assign requested address
> >>
> >> So add the extra logic to make the localhost resolved as expected to
> >> make the PR service work especially in docker.
> >>
> >> [1] 6a2b23e2 prserv: Replace XML RPC with modern asyncrpc implementation
> >>
> >> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> >> ---
> >>   lib/prserv/serv.py | 4 ++--
> >>   1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
> >> index 68db3d3e..0a20b927 100644
> >> --- a/lib/prserv/serv.py
> >> +++ b/lib/prserv/serv.py
> >> @@ -126,7 +126,7 @@ class PRServSingleton(object):
> >>
> >>       def start(self):
> >>           self.prserv = PRServer(self.dbfile)
> >> -        self.prserv.start_tcp_server(self.host, self.port)
> >> +        self.prserv.start_tcp_server(socket.gethostbyname(self.host), self.port)
> >>           self.process = self.prserv.serve_as_process()
> >>
> >>           if not self.prserv.address:
> >> @@ -221,7 +221,7 @@ def start_daemon(dbfile, host, port, logfile, read_only=False):
> >>       dbfile = os.path.abspath(dbfile)
> >>       def daemon_main():
> >>           server = PRServer(dbfile, read_only=read_only)
> >> -        server.start_tcp_server(host, port)
> >> +        server.start_tcp_server(ip, port)
> >>           server.serve_forever()
> >>
> >>       run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
> >>
> >
> > Richard has picked up Martin's patch in master-next, I think that would
> > remove the need for this one?
>
> The patch from Martin is just make the error message specific, but
> localhost still does't work in docker with Martin's patch and this patch
> is used to make it work in docker.

I think that was because IPv6 support had been incorrectly configured
for Docker, perhaps that is the same thing happening in your setup?

>
> Thanks,
>
> >
> > Scott
> >
>
> 
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [bitbake-devel] [PATCH] prserv: make localhost work
  2021-09-01  1:31       ` [bitbake-devel] " Joshua Watt
@ 2021-09-01  1:51         ` Yu, Mingli
  2021-09-01  9:14           ` Martin Jansa
  0 siblings, 1 reply; 6+ messages in thread
From: Yu, Mingli @ 2021-09-01  1:51 UTC (permalink / raw)
  To: Joshua Watt; +Cc: Scott Murray, bitbake-devel, Martin Jansa



On 9/1/21 9:31 AM, Joshua Watt wrote:
> [Please note: This e-mail is from an EXTERNAL e-mail address]
> 
> On Tue, Aug 31, 2021 at 8:14 PM Yu, Mingli <mingli.yu@windriver.com> wrote:
>>
>>
>>
>> On 8/31/21 11:01 PM, Scott Murray wrote:
>>> [Please note: This e-mail is from an EXTERNAL e-mail address]
>>>
>>> On Tue, 31 Aug 2021, mingli.yu@windriver.com wrote:
>>>
>>>> From: Mingli Yu <mingli.yu@windriver.com>
>>>>
>>>> After [1] introduced, the PR server doesn't work in docker when use
>>>> below setting like before.
>>>> PRSERV_HOST = "localhost:0"
>>>>
>>>> And it's because the localhost is resolved to an ipv6 address ::1 as
>>>> the below bitbake-prserv shows.
>>>>    bitbake$ bitbake-prserv --start --host=localhost --port=42005
>>>>    bitbake$ cat prserv.log
>>>>       Traceback (most recent call last):
>>>>         File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 55, in <module>
>>>>           ret = main()
>>>>         File "/OE/nodistro/honister/bitbake/bin/bitbake-prserv", line 46, in main
>>>>           ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only)
>>>>         File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 226, in start_daemon
>>>>           run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
>>>>         File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 202, in run_as_daemon
>>>>           func()
>>>>         File "/OE/nodistro/honister/bitbake/lib/prserv/serv.py", line 224, in daemon_main
>>>>           server.serve_forever()
>>>>         File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 233, in serve_forever
>>>>           self.start()
>>>>         File "/OE/nodistro/honister/bitbake/lib/bb/asyncrpc/serv.py", line 144, in start_tcp
>>>>           self.server = self.loop.run_until_complete(server_coro)
>>>>         File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
>>>>           return future.result()
>>>>         File "/usr/lib/python3.8/asyncio/streams.py", line 94, in start_server
>>>>           return await loop.create_server(factory, host, port, **kwds)
>>>>         File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
>>>>           raise OSError(err.errno, 'error while attempting '
>>>>       OSError: [Errno 99] error while attempting to bind on address ('::1', 42005, 0, 0): cannot assign requested address
>>>>
>>>> So add the extra logic to make the localhost resolved as expected to
>>>> make the PR service work especially in docker.
>>>>
>>>> [1] 6a2b23e2 prserv: Replace XML RPC with modern asyncrpc implementation
>>>>
>>>> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>>>> ---
>>>>    lib/prserv/serv.py | 4 ++--
>>>>    1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
>>>> index 68db3d3e..0a20b927 100644
>>>> --- a/lib/prserv/serv.py
>>>> +++ b/lib/prserv/serv.py
>>>> @@ -126,7 +126,7 @@ class PRServSingleton(object):
>>>>
>>>>        def start(self):
>>>>            self.prserv = PRServer(self.dbfile)
>>>> -        self.prserv.start_tcp_server(self.host, self.port)
>>>> +        self.prserv.start_tcp_server(socket.gethostbyname(self.host), self.port)
>>>>            self.process = self.prserv.serve_as_process()
>>>>
>>>>            if not self.prserv.address:
>>>> @@ -221,7 +221,7 @@ def start_daemon(dbfile, host, port, logfile, read_only=False):
>>>>        dbfile = os.path.abspath(dbfile)
>>>>        def daemon_main():
>>>>            server = PRServer(dbfile, read_only=read_only)
>>>> -        server.start_tcp_server(host, port)
>>>> +        server.start_tcp_server(ip, port)
>>>>            server.serve_forever()
>>>>
>>>>        run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
>>>>
>>>
>>> Richard has picked up Martin's patch in master-next, I think that would
>>> remove the need for this one?
>>
>> The patch from Martin is just make the error message specific, but
>> localhost still does't work in docker with Martin's patch and this patch
>> is used to make it work in docker.
> 
> I think that was because IPv6 support had been incorrectly configured
> for Docker, perhaps that is the same thing happening in your setup?

In the same docker, the PR service works with PRSERV_HOST = 
"localhost:0" before, but it begins not work recently after some code 
restructure for prserv part.

BTW, the ipv6 is disabled in the docker of my env.

Thanks,

> 
>>
>> Thanks,
>>
>>>
>>> Scott
>>>
>>
>> 
>>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [bitbake-devel] [PATCH] prserv: make localhost work
  2021-09-01  1:51         ` Yu, Mingli
@ 2021-09-01  9:14           ` Martin Jansa
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2021-09-01  9:14 UTC (permalink / raw)
  To: Yu, Mingli; +Cc: Joshua Watt, Scott Murray, bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]

>
>
> > I think that was because IPv6 support had been incorrectly configured
> > for Docker, perhaps that is the same thing happening in your setup?
>
> In the same docker, the PR service works with PRSERV_HOST =
> "localhost:0" before, but it begins not work recently after some code
> restructure for prserv part.
>
> BTW, the ipv6 is disabled in the docker of my env.
>

Check your /etc/hosts

There is ::1 localhost localhost-ip6 even when ipv6 is disabled in docker's
deamon.json.

And that makes bitbake (asyncio) to try binding to ::1 instead of
127.0.0.1, if you remove "localhost" from ::1 in /etc/hosts in running
container, then it works again OK.

My patch allows you to use 127.0.0.1:0 explicitly and still keep the same
behavior (as autostarted prserv with random port) as when localhost:0 is
being used (and also for consistency).

Your patch is IMHO good addition to that (that the localhost is resolved in
python and then people don't need to use 127.0.0.1 explicitly).

Regards,

[-- Attachment #2: Type: text/html, Size: 1423 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-01  9:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <16A04D855643B3E7.30479@lists.openembedded.org>
2021-08-31  7:48 ` [PATCH] prserv: make localhost work Yu, Mingli
2021-08-31 15:01   ` Scott Murray
2021-09-01  1:20     ` Yu, Mingli
2021-09-01  1:31       ` [bitbake-devel] " Joshua Watt
2021-09-01  1:51         ` Yu, Mingli
2021-09-01  9:14           ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.