[libvirt] [PATCH v3] Loop through all resolved addresses in virNetSocketNewListenTCP

Olaf Hering olaf at aepfle.de
Thu Jul 5 13:52:51 UTC 2018


On Wed, Jul 04, Daniel P. Berrangé wrote:

> On Wed, Jul 04, 2018 at 01:48:56PM +0200, Olaf Hering wrote:
> > Since bind() already succeeded (or will succeed) for one address, there is
> > no reason to error out. Anyone who connects to an resolved ipv6 address will
> > get an error, and moves on to try the resolved ipv4 address.
> > libvirt is overdoing things here.
> Many of the errnos reported by bind() indicate problems we should not be
> ignoring IMHO.  So I'd rather handle the actual errnos that indicate
> non-fatal problems.

So you prefer to keep the existing behavior that all errors from bind()
are fatal, even if nsocks!=0?


What is the reason for that behavior? So far noone was willing to answer that question.


Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180705/0b881583/attachment-0001.sig>


More information about the libvir-list mailing list