Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Never reset Conn.xid (fixes #5) #73

Merged
merged 2 commits into from
Aug 17, 2015
Merged

Never reset Conn.xid (fixes #5) #73

merged 2 commits into from
Aug 17, 2015

Conversation

horkhe
Copy link
Contributor

@horkhe horkhe commented Aug 12, 2015

A bug was discovered that several requests can be assigned the same xid. The reason for that is that the Conn.autheticate() function can reset Conn.xid to 0. A solution that this PR suggests is to never reset the Conn.xid, it only needs to be unique for every request after all.

@horkhe
Copy link
Contributor Author

horkhe commented Aug 14, 2015

Hello @samuel, what do you think about this PR?

@samuel
Copy link
Owner

samuel commented Aug 17, 2015

Looks good. thanks for the patch

samuel added a commit that referenced this pull request Aug 17, 2015
Never reset Conn.xid (fixes #5)
@samuel samuel merged commit 01d8ae0 into samuel:master Aug 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants