public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Eli Schwartz <eschwartz@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Wayland! Beware of!
Date: Wed, 25 Sep 2024 10:26:40 -0400	[thread overview]
Message-ID: <0c9b42af-ad23-496d-a881-c0d0bb7e6e01@gentoo.org> (raw)
In-Reply-To: <MTAwMDAyNi53ZG5lc2RheQ.1727258445@quikprotect>


[-- Attachment #1.1: Type: text/plain, Size: 2425 bytes --]

On 9/25/24 6:00 AM, Walter Dnes wrote:
>   My system is actually very stable.  In the shitstorm that erupted on
> this list at "ipv6" enabling I did not see any mention of sysctl.  In my
> /etc/default/grub file I have...
> 
> GRUB_CMDLINE_LINUX_DEFAULT="noexec=on net.ifnames=0 ipv6.disable=1"
> 
> With this setting is it guaranteed that a program compiled with "ipv6"
> flag will not try IPV6 first and timeout before dropping down to IPV4?


(Note that the sysctl dynamically disables ipv6 support so that you can
manually toggle it after boot, e.g. for testing. The kernel command line
option hard-disables it at boot time. Your choice which to use, I guess.)


If the kernel has disabled ipv6 there is no timeout because no attempt
is made.

If the kernel has enabled ipv6 then an attempt will be made and it may:

- succeed, if your network has functioning ipv6 connectivity

- fail instantly, if your network is correctly configured (you may not
  be in control of the network you use)

- fail after a lengthy timeout after your network "valiantly" attempts
  to send your connection attempt into a black hole of doom

As Arsen mentioned, RFC 8305 defines the "Happy Eyeballs" mechanism for
trying both ipv4 and ipv6 at the same time, incurring the cost of
slightly more traffic for the benefit of avoiding timeouts (since ipv4
will still succeed just as fast regardless of whether a parallel ipv6 is
timing out, and as soon as ipv4 succeeds, the ipv6 timeout is ignored
and made redundant).

Not all software uses Happy Eyeballs. In particular, emerge --sync does
not, because the python library that portage uses to check for updated
PGP keys used when validating manifests, does not. This pained me
tremendously since "emerge --sync" would literally hang forever, until I
disabled ipv6 via the kernel. Note that since Aug 31, 2021, Gentoo's
package for python has not supported USE=ipv6, but the sysctl works
quite well.


>   How OS-specific is this?  I "asked Mr. Google" and the NordVPN web
> page recommended for Redhat based distros...


It is specific to the linux kernel, that is all. You may replace "all"
with the name of a machine-specific interface (as listed by "ip addr")
to express settings that are specific to a given interface. Most people
do not need that flexibility and simply want all interfaces to look the
same.


-- 
Eli Schwartz


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  parent reply	other threads:[~2024-09-25 14:26 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-23 20:14 [gentoo-user] Wayland! Beware of! Alan Mackenzie
2024-09-23 21:11 ` Eli Schwartz
2024-09-23 22:08   ` Alan Mackenzie
2024-09-23 22:54     ` Eli Schwartz
2024-09-24 11:30       ` [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!] Alan Mackenzie
2024-09-24 11:40         ` Arsen Arsenović
2024-09-24 12:34           ` [gentoo-user] --depclean and openrc Alan Mackenzie
2024-09-24 15:24             ` Eli Schwartz
2024-09-24 18:15               ` Alan Mackenzie
2024-09-27  0:09           ` [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!] Mitchell Dorrell
2024-09-24 15:15         ` Eli Schwartz
2024-09-24 18:53           ` Alan Mackenzie
2024-09-24 19:36             ` Eli Schwartz
2024-10-25 19:22               ` Alan Mackenzie
2024-10-26  3:10                 ` Walter Dnes
2024-10-27  1:53                 ` Eli Schwartz
2024-10-27 22:52                   ` Alan Mackenzie
2024-10-27 23:14                     ` Eli Schwartz
2024-09-25  0:32             ` Matt Jolly
2024-09-24  0:43     ` [gentoo-user] Wayland! Beware of! Michael Orlitzky
2024-09-24  0:52       ` Mitchell Dorrell
2024-09-24  1:13         ` Matt Jolly
2024-09-24  1:52         ` Eli Schwartz
2024-09-24  9:46           ` Mitchell Dorrell
2024-09-25  0:14             ` Matt Jolly
2024-09-24 10:05     ` Dr Rainer Woitok
2024-09-24 22:00   ` Walter Dnes
2024-09-25  1:42     ` Eli Schwartz
2024-09-25 10:00       ` Walter Dnes
2024-09-25 11:53         ` Arsen Arsenović
2024-09-25 22:21           ` Walter Dnes
2024-09-26  0:25             ` Eli Schwartz
2024-09-26  5:08               ` Walter Dnes
2024-09-26 19:18             ` James Cloos
2024-09-25 14:26         ` Eli Schwartz [this message]
2024-09-25 14:40           ` jay
2024-09-26  0:19       ` Michael Orlitzky
2024-09-23 21:12 ` Arsen Arsenović
2024-09-23 21:20 ` Wol
2024-09-23 22:53   ` karl
2024-09-24  7:10     ` Wols Lists
2024-09-24 18:32       ` What is what (Re: [gentoo-user] Wayland! Beware of!) karl
2024-09-24 23:44         ` Wols Lists

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0c9b42af-ad23-496d-a881-c0d0bb7e6e01@gentoo.org \
    --to=eschwartz@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox