Repository navigation
Conversation
|
🤖 Starting review — findings will be posted here when done. |
| @@ -461,7 +461,7 @@ ucs_status_t ucs_socket_set_buffer_size(int fd, size_t sockopt_sndbuf, | |||
| } | |||
There was a problem hiding this comment.
minor: silent_bind reads broader than the behavior — only the EADDRINUSE case is silenced. Fine given the doc comment clarifies it, just flagging.
|
Confirm with the author that the header change to |
Because its already like this, my robot friend! Look: |
3502520 to
23c84ef
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 Review complete — no issues found. |
23c84ef to
2db3ef8
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
|
||
| ucs_status_t ucs_socket_server_init(const struct sockaddr *saddr, socklen_t socklen, | ||
| int backlog, int silent_err_in_use, | ||
| int backlog, int silent_bind, |
There was a problem hiding this comment.
Inconsistent parameter name. The header sock.h was renamed to silent_bind, but the .c definition still uses silent_err_in_use. This compiles (C ignores prototype vs. definition parameter-name mismatches), but the rename is incomplete and leaves the two files inconsistent, defeating the purpose of the PR.
| int backlog, int silent_bind, | |
| int backlog, int silent_bind, |
Pls also rename the use on the errno == EADDRINUSE check below; the header already uses silent_bind, so the definition here is left inconsistent.
There was a problem hiding this comment.
What are talking about? I do just that!
| ret = bind(fd, saddr, socklen); | ||
| if (ret < 0) { | ||
| if ((errno == EADDRINUSE) && silent_err_in_use) { | ||
| if ((errno == EADDRINUSE) && silent_bind) { |
There was a problem hiding this comment.
Inconsistent parameter name; rename the use on the errno == EADDRINUSE check to match the header's silent_bind.
| if ((errno == EADDRINUSE) && silent_bind) { | |
| if ((errno == EADDRINUSE) && silent_bind) { |
There was a problem hiding this comment.
You are being silly, mr. Robot
|
Note on the prior review comment: the earlier finding asked to confirm the header lands with the Regarding scope/tests: this is a pure rename with no functional change, so no new tests are required (existing TCP listener CI exercises the code path). No other issues found. |
|
🤖 CI Triage Agent — TL;DR: The EFA job didn't fail on any code error — the Azure Pipelines agent received a shutdown/cancel signal at 08:00:17 while gtest sources were still compiling, so the whole build (5 jobs) was canceled. Simply re-run the pipeline; no code change is warranted. Full analysisSummary: Root cause: Infrastructure/cancellation, not a code defect. The log shows a continuous, healthy Implicated commit: none — commit [REDACTED:Hex High Entropy String] is not implicated; no build output attributable to the PR's changes failed. File: n/a (failure originates in the Azure agent, last active build unit: Suggested fix: Re-queue build 133545 / re-run the failed jobs on PR #11859 — the result is not actionable as-is. If this recurs across builds on the same pool, have CI ops check the Related: none found (no matching issue/PR for the agent shutdown signature in this repo).
|
Function "ucs_socket_server_init" define the input parameter "silent_bind" (and commentary confirms that). But in actual implementation his naming is different. So i decide to fix that, and the code become more clear.
2db3ef8 to
95e9179
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
|
||
| ucs_status_t ucs_socket_server_init(const struct sockaddr *saddr, socklen_t socklen, | ||
| int backlog, int silent_err_in_use, | ||
| int backlog, int silent_bind, |
There was a problem hiding this comment.
the header was renamed to silent_bind but the definition here still uses silent_err_in_use. pls rename here too so the header and implementation match.
| ret = bind(fd, saddr, socklen); | ||
| if (ret < 0) { | ||
| if ((errno == EADDRINUSE) && silent_err_in_use) { | ||
| if ((errno == EADDRINUSE) && silent_bind) { |
There was a problem hiding this comment.
| if ((errno == EADDRINUSE) && silent_bind) { | |
| if ((errno == EADDRINUSE) && silent_bind) { |
complete the rename in the function body as well.
|
The rename is incomplete: Pure rename with no functional change, so no new tests are required — existing TCP listener CI exercises the path. No other issues found. |
|
@guy-ealey-morag , i am grateful for the review! ❤️ |
|
@iyastreb, thank for the the approve, Ilia! 🙏 |
What?
Fix the function definition/implementation input parameter different naming.
Why?
This makes code more readable (and beautiful).