Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rsockets: Adjust poll timeout based on time already used
In rpoll(), we spin for a short period of time prior to calling poll(). And poll() is called in a loop, in order to handle events that may not update the desired rsocket state. For example, we could wake up from poll() to process a control message, such as a credit update, but be waiting for app data to be avaialble. This can result in the calling thread re-entering poll(). In order to avoid waiting in poll() for longer than the user specified timeout, track when we enter the call and update the timeout passed to poll() accordingly. Signed-off-by: Sean Hefty <sean.hefty@intel.com>
- Loading branch information