Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure sockets passed through systemd socket activation #3977

Closed
coot opened this issue Aug 27, 2022 · 0 comments · Fixed by #3979
Closed

Configure sockets passed through systemd socket activation #3977

coot opened this issue Aug 27, 2022 · 0 comments · Fixed by #3979
Labels
Snocket Issues / PRs related Snockets

Comments

@coot
Copy link
Contributor

coot commented Aug 27, 2022

When the diffusion is creating sockets we set the following options:

  • SO_REUSEADDR 1
  • SO_REUSEPORT 1
  • TCP_NODELAY 1
  • IPV6_V6ONLY 1 only for ipv6 addresses
  • SO_LINGER 1 0

The following tables shows which options are supported by systemd socket
activation:

socket option socket activation
SO_REUSEADDR -
SO_REUSEPORT ReusePort=
TCP_NODELAY NoDelay=
IPV6_V6ONLY BindIPv6ONLY=
SO_LINGER -
@coot coot added Snocket Issues / PRs related Snockets networking labels Aug 27, 2022
@coot coot changed the title Configure sockets passed through socket activation Configure sockets passed through systemd socket activation Aug 27, 2022
@coot coot mentioned this issue Aug 28, 2022
9 tasks
@coot coot moved this to In Progress in Ouroboros Network Aug 29, 2022
iohk-bors bot added a commit that referenced this issue Aug 30, 2022
3979: Socket configuration r=coot a=coot

# Description

Fixes #3977
         
- Updated network dependency (haskell/network#491 was merged)  
- snocket: various stylistic changes       
- snocket: do not configure sockets in bind method 
- connection-manager: add a method to configure connection sockets 
- socket: added methods to configure sockets 
- Increment zfs copy fail counter
     



Co-authored-by: Marcin Szamotulski <[email protected]>
iohk-bors bot added a commit that referenced this issue Aug 31, 2022
3979: Socket configuration r=coot a=coot

# Description

Fixes #3977
         
- Updated network dependency (haskell/network#491 was merged)  
- snocket: various stylistic changes       
- snocket: do not configure sockets in bind method 
- connection-manager: add a method to configure connection sockets 
- socket: added methods to configure sockets 
- Increment zfs copy fail counter
     



Co-authored-by: Marcin Szamotulski <[email protected]>
@iohk-bors iohk-bors bot closed this as completed in a0e1c2b Sep 1, 2022
Repository owner moved this from In Progress to Done in Ouroboros Network Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Snocket Issues / PRs related Snockets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant