Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312773 - Miss signal to flush in org.eclipse.jgit.util.io.StreamCopyThread
Summary: Miss signal to flush in org.eclipse.jgit.util.io.StreamCopyThread
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-13 06:58 EDT by Dmitry Neverov CLA
Modified: 2010-05-13 13:02 EDT (History)
1 user (show)

See Also:


Attachments
patch to fix this issue (1.53 KB, patch)
2010-05-13 06:59 EDT, Dmitry Neverov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Neverov CLA 2010-05-13 06:58:20 EDT
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(). Patch that fix this is attached.
Comment 1 Dmitry Neverov CLA 2010-05-13 06:59:13 EDT
Created attachment 168364 [details]
patch to fix this issue
Comment 2 Shawn Pearce CLA 2010-05-13 13:02:47 EDT
Committed as 3f143b8d6b5c20098e041e22be42216e668a4a0b