Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The original read_user_from_stream function from PR 1237 is a bad pattern because it results in silently dropping any data left in the buffer on return. If we want to read anything else from the same TcpStream after the JSON object, the buffer needs to go in the caller.
- Loading branch information