Page MenuHomeSoftware Heritage

Prevent busy-waiting on / spamming consumer.poll.
ClosedPublic

Authored by vlorentz on Oct 28 2019, 2:11 PM.

Details

Summary

will return shortly before X expired
(a matter of milliseconds), so after it returns a first time, it
will then be called with a timeout in the order of milliseconds,
therefore returning immediately, then be called again, etc.

This commit prevents it from being called with a timeout <= 10ms.

Diff Detail

Repository
rDJNL Journal infrastructure
Branch
poll-flood
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 8660
Build 12598: tox-on-jenkinsJenkins
Build 12597: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Oct 29 2019, 1:34 PM