Skip to content
This repository was archived by the owner on Mar 11, 2020. It is now read-only.

Conversation

@xxr3376
Copy link

@xxr3376 xxr3376 commented Dec 3, 2016

My colleague found that this code do not work well in PIPELINE mode.

The reason is that the old code create bufio.Reader for each request. When using pipeline mode, bufio.Reader may eat some input data which belong to next request.

The old code works well when client waits for server response before sending next request. While Reader is still trying to read more data to its buffer, there's nothing more but exactly current request data in conn.

Old code create bufio.Reader for each request. When using pipeline mode,
bufio.Reader may eat some input data which belong to next request.
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.

1 participant