[Qtwebengine] IPv6 Address Family not supported by protocol

Kai Koehne Kai.Koehne at qt.io
Thu Dec 21 14:07:15 CET 2017


Chromium does not support disabling IPv6 as an option anymore - see also https://codereview.chromium.org/1149303005 .

Anyhow, you seem to only care about the error. You can just disable the output in code (see qtwebengine/src/3rdparty/chromium/net/socket/socket_posix.cc). This requires rebuilding Qt WebEngine though.

Regards

Kai

> -----Original Message-----
> From: QtWebEngine [mailto:qtwebengine-bounces+kai.koehne=qt.io at qt-
> project.org] On Behalf Of Benjamin Beisel
> Sent: Tuesday, December 12, 2017 1:41 PM
> To: qtwebengine at qt-project.org
> Subject: [Qtwebengine] IPv6 Address Family not supported by protocol
> 
> Hi,
> 
> we're running QtWebengine 5.7 under Linux version 4.1.33-yocto-standard.
> Due to reasons we don't use IPv6 in our environment and it is disabled by
> kernel command line parameter ipv6.disable=1. Nevertheless in the logs we see
> that qtwebengine is trying to access IPv6 addresses and throws errors when we
> open an URL.
> 
> ERROR:socket_posix.cc <http://socket_posix.cc> (82)] CreatePlatformSocket()
> returned an error, errno=97: Address family not supported by protocol
> 
> Is there a way to disable IPv6 or to suppress these messages? The application is
> working fine, just the logs are messed up. Getting up to 6 errors with each URL
> called.
> 
> (All urls we're using have IPv4 entries in /etc/hosts)
> 
> Thanks​



More information about the QtWebEngine mailing list