fix: the logic of the protocol in loadListeners#44823
fix: the logic of the protocol in loadListeners#44823tao12345666333 wants to merge 1 commit intomoby:masterfrom
Conversation
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
neersighted
left a comment
There was a problem hiding this comment.
Hmm, good catch, though I'm not convinced this is the right place to carve out this special case. This also definitely requires a regression test to prevent the same mistake again.
|
Actually, something fishy is going on: Lines 30 to 31 in d62a88e We have a test case explicitly for this -- so we need to investigate why that is failing to catch the regression. |
|
Thanks! Even though we have this test case, it doesn't use the In the previous code, it is not judged whether I think I should change the function called to |
|
Could it be the subtests here not capturing the variable? Lines 50 to 51 in d62a88e |
|
no, |
|
I'm personally fine with the check added in this PR (this was indeed an oversight of mine), or perhaps remove the check altogether (if we already validate these before this). That said, we should refactor some of this (I recall I looked at this code as well, when working on #43459); I think there's too much handling happening in Lines 83 to 92 in 803c21f |
Ah, yea, you're right; was wondering for a bit if the test was broken. |
|
Looks like moby/daemon/listeners/listeners_linux.go Lines 82 to 90 in 803c21f |
|
Then I plan to do this:
WDYT? |
|
I'd split the difference: use this PR, but change the implementation to the second, and add e2e testing of this area of code (not just |
|
OK, let me add some e2e test cases, thanks |
Agreed; There's also quite a bit more to look at w.r.t. validation in general. Some quick thoughts on some of that;
|
|
Thanks for your reply, I will do some thinking. I'll be back from vacation in two days. |
Signed-off-by: Jintao Zhang zhangjintao9020@gmail.com
- What I did
Here introduced a judgment in 5008409
This will result in the following error.
The configuration
fd://is the default configuration for docker.service.we shouldn't break it
https://github.com/moby/moby/blob/master/contrib/init/systemd/docker.service#LL13C31-L13C36
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)