Skip to content

syscall: refactor setSocketOption for better errno latching#3915

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
venilnoronha:gh-3819-fix-socket
Jul 28, 2018
Merged

syscall: refactor setSocketOption for better errno latching#3915
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
venilnoronha:gh-3819-fix-socket

Conversation

@venilnoronha
Copy link
Copy Markdown
Member

@venilnoronha venilnoronha commented Jul 20, 2018

Description:
This PR refactors setSocketOption to allow for returning the errno that is captured as soon as the syscall is performed. See #3819 for more information.

Signed-off-by: Venil Noronha veniln@vmware.com

Risk Level: Low
Testing: Existing tests suffice
Docs Changes: N/A
Release Notes: N/A

This commit refactors setSocketOption to allow for returning the errno
that is captured as soon as the syscall is performed.

Signed-off-by: Venil Noronha <veniln@vmware.com>
@venilnoronha
Copy link
Copy Markdown
Member Author

I've updated the routines to return the newly introduced Api::SysCallResult in place of the older std::tuple.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Awesome, this is great. Thanks.

@mattklein123 mattklein123 merged commit 8b9fd9a into envoyproxy:master Jul 28, 2018
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