Skip to content

Commit

Permalink
Issue #4855 - Occasional h2spec failures on CI
Browse files Browse the repository at this point in the history
More comments after review.

Signed-off-by: Simone Bordet <[email protected]>
  • Loading branch information
sbordet committed Jun 8, 2020
1 parent 42a5d27 commit 4c9bd59
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,15 @@ private void postSend()
{
case PRE_SEND:
{
// The send has not completed the callback yet,
// wait for succeeded() or failed() to be called.
_state = State.POST_SEND;
return;
}
case SUCCEED:
{
// The send already completed successfully, but the
// call to succeeded() was delayed, so call it now.
callback = _callback;
commit = _commit;
failure = null;
Expand All @@ -453,6 +457,8 @@ private void postSend()
}
case FAIL:
{
// The send already completed with a failure, but
// the call to failed() was delayed, so call it now.
_state = State.FAILED;
callback = _callback;
commit = _commit;
Expand Down

0 comments on commit 4c9bd59

Please sign in to comment.