-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Milestone
Description
We recently fixed a bug in our code where we were doing two things in the wrong order, which would lead to a race condition.
Examples, such as
Lines 43 to 45 in c6970b8
| InputStream in = channel.getInputStream(); | |
| channel.connect(); |
Our code had:
channel.connect();
InputStream in = channel.getInputStream();
List<String> response = readStream(in);It mostly worked, but would occasionally fail, mostly when testing connections between two fastest machines located nearby.
Would it be possible to log a warning when you getInputStream() but the channel has already connected, or is that a valid scenario in some circumstances?
Metadata
Metadata
Assignees
Labels
No labels