-
Notifications
You must be signed in to change notification settings - Fork 637
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
Introduce connection context for Unix socket #1160
Introduce connection context for Unix socket #1160
Conversation
86b62e2
to
0235b6b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1160 +/- ##
============================================
+ Coverage 70.65% 70.70% +0.05%
============================================
Files 114 114
Lines 61799 63073 +1274
============================================
+ Hits 43664 44597 +933
- Misses 18135 18476 +341
|
Hide 'unixsocketgroup' and 'unixsocketperm' into a Unix socket specific data structure. A single opaque pointer 'void *priv' is enough for a listener. Once any new config is added, we don't need 'void *priv2', 'void *priv3' and so on. Fixes: b48596a ('Add support for setting the group on a unix domain socket (valkey-io#901)') Cc: Ayush Sharma <[email protected]> Signed-off-by: zhenwei pi <[email protected]>
0235b6b
to
acf811f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a decision made at the time (for simplicity), #901 (review)
i am ok with both, i will let @madolson do the call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me. I didn't think of this solution at the time.
Hide 'unixsocketgroup' and 'unixsocketperm' into a Unix socket specific data structure. A single opaque pointer 'void *priv' is enough for a listener. Once any new config is added, we don't need 'void *priv2', 'void *priv3' and so on. Signed-off-by: zhenwei pi <[email protected]>
Hide 'unixsocketgroup' and 'unixsocketperm' into a Unix socket specific data structure. A single opaque pointer 'void *priv' is enough for a listener. Once any new config is added, we don't need 'void *priv2', 'void *priv3' and so on.
Fixes: b48596a ('Add support for setting the group on a unix domain socket (#901)')
Cc: Ayush Sharma [email protected]