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

reader: fix msg.Requeue and potential msg.Touch deadlock #17

Merged
merged 1 commit into from
Nov 11, 2013

Conversation

mreiferson
Copy link
Member

Turns out we didn't need #12 after all, the FinishedMessage struct already has a RequeueTimeoutMs field. Also, by sending the command via cmdChan in-flight accounting became inconsistent.

Also, Touch() could cause deadlocks if the connection closed while trying to send on cmdChan.

@mreiferson
Copy link
Member Author

RFR @ someone

jehiah added a commit that referenced this pull request Nov 11, 2013
reader: fix msg.Requeue and potential msg.Touch deadlock
@jehiah jehiah merged commit 18ec79b into nsqio:master Nov 11, 2013
@mreiferson mreiferson deleted the commands_17 branch November 11, 2013 19:44
sthulb pushed a commit to HailoOSS/go-nsq that referenced this pull request Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants