Skip to content
Snippets Groups Projects
Commit 3f143b8d authored by Dmitry Neverov's avatar Dmitry Neverov Committed by Shawn O. Pearce
Browse files

Fix missing flush in StreamCopyThread


It is possible to miss flush() invocation in StreamCopyThread.
In this case some data will not be sent to remote host and we will
wait forever (or until timeout) in src.read().

Use a counter to keep track of the flush requests.

Change-Id: Ia818be9b109a1674d9e2a9c78e125ab248cfb75b
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent a54e0bae
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment