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

fix connection setup read buffering (flakey tests) #24

Merged
merged 1 commit into from
Feb 1, 2014

Conversation

mreiferson
Copy link
Member

see commit message

(this was identified due to flakey Snappy tests)

if nsqd sends the IDENTIFY + handshake packets together
then go-nsq reads and buffers both, preventing an UpgradeX()
from being able to access the handshake data because we were
wrapping the underlying connection and not the buffered one.

fix this by not buffering at all during connection setup
and enabling it before handoff.
@mreiferson
Copy link
Member Author

RFR @jehiah

jehiah added a commit that referenced this pull request Feb 1, 2014
fix connection setup read buffering (flakey tests)
@jehiah jehiah merged commit 5644909 into nsqio:master Feb 1, 2014
@mreiferson mreiferson deleted the reader_identify_buffering_24 branch February 1, 2014 17:14
amosir pushed a commit to amosir/go-nsq that referenced this pull request Jan 16, 2024
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