Skip to content

Add Sequence number to OpError type#218

Open
oskirby wants to merge 1 commit intomdlayher:mainfrom
oskirby:operr-with-sequence
Open

Add Sequence number to OpError type#218
oskirby wants to merge 1 commit intomdlayher:mainfrom
oskirby:operr-with-sequence

Conversation

@oskirby
Copy link

@oskirby oskirby commented Nov 4, 2024

I am trying to write an asynchronous wrapper around a netlink.Conn so that a single connection can be shared amongst many goroutines and it's been working pretty good so far, except when it comes to handling errors. The problem arises because the OpError type doesn't include anything that can be used to match up with the request that generated the error. It would be handy if we could include the Sequence field from the netlink header in the OpError to facilitate such a match.

@nickgarlis
Copy link
Collaborator

@oskirby I recently opened a PR that was almost identical to this as I ran into the same problem.
I only realized you had a similar one open after it was merged. Sorry about that.

I believe we can now close this ?

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.

2 participants