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

Bind comment updates #262

Merged
merged 4 commits into from
Jun 20, 2024
Merged

Bind comment updates #262

merged 4 commits into from
Jun 20, 2024

Conversation

davidge20
Copy link
Contributor

Description

Commented out bind_syscall and all functions related to it

Copy link
Member

@JustinCappos JustinCappos left a comment

Choose a reason for hiding this comment

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

Overall, it's a good first pass. At a high level:

  1. focus on why the code does something instead of what. For example, why did you insert an item into a data structure?

  2. Feel free to say when you are not sure. This is totally normal and something I do when writing my own code. Don't be shy to do this more often.

  3. if you want to cite a source go ahead. For example, if you read a manpage to understand something or looked at an article, it's okay to drop a link, especially if the concept is complicated. This might be helpful for some of the setsockopt activities and related flags.

src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
@davidge20 davidge20 requested a review from JustinCappos June 14, 2024 21:06
@JustinCappos
Copy link
Member

Please ping me for a review after you've had a chance to address all the comments.

@davidge20 davidge20 closed this Jun 14, 2024
@davidge20 davidge20 reopened this Jun 14, 2024
Copy link
Contributor

@rennergade rennergade left a comment

Choose a reason for hiding this comment

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

Requested some minor changes. Also should add some tests, bind is used in most of the net tests in the test suite already, but worth adding some explicit edge cases.

@davidge20
Copy link
Contributor Author

@JustinCappos pinging for further review after updates

Copy link
Member

@JustinCappos JustinCappos left a comment

Choose a reason for hiding this comment

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

It's close. Please fix the things I mentioned (if something isn't clear, let me know) and then have Yash or Nick merge...

src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@rennergade rennergade left a comment

Choose a reason for hiding this comment

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

I think this is good to go. Approved!

Copy link
Member

@JustinCappos JustinCappos left a comment

Choose a reason for hiding this comment

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

LGTM!

@JustinCappos JustinCappos merged commit bac475f into develop Jun 20, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants