Skip to content

Commit

Permalink
Update timeout message in HTTP/2
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Apr 13, 2020
1 parent 70f3c77 commit a139c02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Connection/Internal/Http2ConnectionProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,11 @@ private function createStreamInactivityWatcher(int $streamId, int $timeout): ?st
\pack("N", Http2Parser::CANCEL)
);

$this->releaseStream($streamId, new TimeoutException('Inactivity timeout exceeded, took longer than ' . $timeout . ' ms'));
$this->releaseStream(
$streamId,
new TimeoutException('Inactivity timeout exceeded, more than '
. $timeout . ' ms elapsed from last data received')
);
});

Loop::unreference($watcher);
Expand Down

0 comments on commit a139c02

Please sign in to comment.