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

Got segvault on notification #6

Open
jooooonathan opened this issue Jun 14, 2023 · 0 comments
Open

Got segvault on notification #6

jooooonathan opened this issue Jun 14, 2023 · 0 comments

Comments

@jooooonathan
Copy link

jooooonathan commented Jun 14, 2023

Hi,

I got a segmentation fault on line 43.

it seems the error handling has some problem :)

Version I use: v1.0.5


when creating a subscription to a server that previously has a session and subscriptions with another client.
but if the go-netconf client connect and create subscription first then the other client create session and subscriptions with the same server it will work fine.
I think the root cause for my case is I set the timeout too small.
But the error handling seems not process it well.

rpc, err := session.SyncRPC(sub, timeout)
if err != nil || len(rpc.Errors) != 0 {
return fmt.Errorf("fail to create notification stream with errors: %s. Error: %s", rpc.Errors, err)
}

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

No branches or pull requests

1 participant