Skip to content

contrib: don't order the client HTTP socket after network-online.target - #87

Merged
cyphar merged 1 commit into
mainfrom
network-online-blocker
Oct 22, 2026
Merged

cyphar merged 1 commit into
mainfrom
network-online-blocker

Conversation

@mvo5

@mvo5 mvo5 commented Oct 21, 2026

Copy link
Copy Markdown
Member

quarry-client-http.socket only listens on 127.0.0.1, so it never needs the network. But being a socket it is also Before=sockets.target, so its After=network-online.target puts the network on the boot path: on a machine without a network sockets.target and basic.target wait for systemd-networkd-wait-online to time out (120s), and everything after them waits too.

Drop the network-online ordering from the socket. The service keeps its own, so the actual fetches still wait for the network.

quarry-client-http.socket only listens on 127.0.0.1, so it never needs
the network. But being a socket it is also Before=sockets.target, so
its After=network-online.target puts the network on the boot path: on
a machine without a network sockets.target and basic.target wait for
systemd-networkd-wait-online to time out (120s), and everything after
them waits too.

Drop the network-online ordering from the socket. The service keeps
its own, so the actual fetches still wait for the network.

Signed-off-by: Michael Vogt <michael@amutable.com>
@mvo5
mvo5 requested a review from cyphar October 21, 2026 15:42

@martinpitt martinpitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, yes. This was obviously wrong. Servers should never do that. Thanks!

@mvo5

mvo5 commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

@cyphar: I will merge this, I hope that is okay. If you have concern please speak up or just revert (if you see this too late) - and my apologies if I overstepped here.

@cyphar
cyphar merged commit 50e2eee into main Oct 22, 2026
16 checks passed
@cyphar

cyphar commented Oct 22, 2026

Copy link
Copy Markdown
Member

@mvo5 Beat you to it 😜

@cyphar
cyphar deleted the network-online-blocker branch October 22, 2026 13:36
@cyphar

cyphar commented Oct 22, 2026

Copy link
Copy Markdown
Member

And yeah, my bad -- I must've copy-pasted the section without thinking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants