Skip to content

Conversation

devnexen
Copy link
Contributor

See comment here.

@rustbot
Copy link
Collaborator

rustbot commented Apr 29, 2025

r? @ibraheemdev

rustbot has assigned @ibraheemdev.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 29, 2025
@rust-log-analyzer

This comment has been minimized.

@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from b1c90c8 to 82a0b2a Compare April 29, 2025 18:28
@rust-log-analyzer

This comment has been minimized.

@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from 82a0b2a to 7a84725 Compare April 29, 2025 19:00
@rust-log-analyzer

This comment has been minimized.

@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from 7a84725 to 7cea902 Compare April 29, 2025 19:29
@ibraheemdev
Copy link
Member

r? libs for the (unstable) API change.

@rustbot rustbot assigned thomcc and unassigned ibraheemdev May 2, 2025
@thomcc
Copy link
Member

thomcc commented May 30, 2025

r? libs-api

@rustbot rustbot added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label May 30, 2025
@rustbot rustbot assigned joshtriplett and unassigned thomcc May 30, 2025
@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from 7cea902 to dafdcfa Compare August 30, 2025 05:32
@rustbot
Copy link
Collaborator

rustbot commented Aug 30, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@devnexen devnexen requested a review from joboet August 30, 2025 06:49
@joboet joboet assigned joboet and unassigned joshtriplett Aug 30, 2025
@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from dafdcfa to c0c9afe Compare August 30, 2025 08:34
Copy link
Member

@joboet joboet left a comment

Choose a reason for hiding this comment

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

Apart from the nit the implementation looks good to me. I'm nominating this for libs-api to discuss the overflow behaviour. It might arguably be better to use a saturating conversion on the seconds – deferring the ACK for less time than given is not really an error.

@rustbot label +I-libs-api-nominated

View changes since this review

@rustbot rustbot added the I-libs-api-nominated Nominated for discussion during a libs-api team meeting. label Aug 30, 2025
@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from c0c9afe to a1096c6 Compare August 30, 2025 10:30
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 16, 2025
fn set_deferaccept(&self, accept: u32) -> io::Result<()>;
fn set_deferaccept(&self, accept: Duration) -> io::Result<()>;

/// Gets the accept delay value (in seconds) of the `TCP_DEFER_ACCEPT` option.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Gets the accept delay value (in seconds) of the `TCP_DEFER_ACCEPT` option.
/// Gets the accept delay value of the `TCP_DEFER_ACCEPT` option.

@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from 13f8c1d to 05fecb3 Compare September 17, 2025 05:27
Comment on lines 68 to 69
/// Note that the delay is expressed as Duration from user's perspective
/// the call rounds it down to the nearest second.
Copy link
Member

Choose a reason for hiding this comment

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

This is misleading, the "nearest second" might very well be quite a lot smaller than the duration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

how would you phrase it ?

Copy link
Member

Choose a reason for hiding this comment

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

I'd probably just remove the sentence. Alternatively,

Suggested change
/// Note that the delay is expressed as Duration from user's perspective
/// the call rounds it down to the nearest second.
the call rounds it down to the nearest second expressible as a [`c_int`].

@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from 05fecb3 to c414a42 Compare September 26, 2025 16:50
@rust-log-analyzer

This comment has been minimized.

@devnexen devnexen force-pushed the tcp_deferaccept_toduration branch from c414a42 to c0de794 Compare September 26, 2025 17:39
@joboet
Copy link
Member

joboet commented Sep 26, 2025

Great, thank you!
@bors r+

@bors
Copy link
Collaborator

bors commented Sep 26, 2025

📌 Commit c0de794 has been approved by joboet

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 26, 2025
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Sep 27, 2025
…n, r=joboet

std::net: update tcp deferaccept delay type to Duration.

See comment [here](rust-lang#119639 (comment)).
bors added a commit that referenced this pull request Sep 27, 2025
Rollup of 9 pull requests

Successful merges:

 - #140482 (std::net: update tcp deferaccept delay type to Duration.)
 - #146037 (Introduce CoerceShared lang item and trait, and basic Reborrow tests)
 - #146732 (tests: relax expectations after llvm change 902ddda120a5)
 - #147018 (re-order normalizations in run-make linker-warning test)
 - #147032 (Fix doctest compilation time display)
 - #147046 (Rename `rust.use-lld` to `rust.bootstrap-override-lld`)
 - #147050 (PassWrapper: update for new PGOOptions args in LLVM 22)
 - #147075 (Make `def_path_hash_to_def_id` not panic when passed an invalid hash)
 - #147076 (update issue number for more_float_constants)

r? `@ghost`
`@rustbot` modify labels: rollup
@matthiaskrgr
Copy link
Member

@bors r-
#147087 (comment)

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 27, 2025
@devnexen
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 27, 2025
@joboet
Copy link
Member

joboet commented Sep 28, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 28, 2025

📌 Commit 19d0e72 has been approved by joboet

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 28, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 28, 2025
…n, r=joboet

std::net: update tcp deferaccept delay type to Duration.

See comment [here](rust-lang#119639 (comment)).
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 28, 2025
…n, r=joboet

std::net: update tcp deferaccept delay type to Duration.

See comment [here](rust-lang#119639 (comment)).
bors added a commit that referenced this pull request Sep 28, 2025
Rollup of 6 pull requests

Successful merges:

 - #140482 (std::net: update tcp deferaccept delay type to Duration.)
 - #141469 (Allow `&raw [mut | const]` for union field in safe code)
 - #144197 (TypeTree support in autodiff)
 - #146675 (Allow shared access to `Exclusive<T>` when `T: Sync`)
 - #147113 (Reland "Add LSX accelerated implementation for source file analysis")
 - #147120 (Fix --extra-checks=spellcheck to prevent cargo install every time)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants