Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in Windows agent that did not honor buffer's EPS limit #7333

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

vikman90
Copy link
Member

@vikman90 vikman90 commented Feb 1, 2021

Related issue
#7304

This PR aims to fix issue #7304 by replacing the call to select() with nanosleep(). Paradoxically, we used select() looking for cross-platform compatibility. As explained in the issue, Windows does not support calling select() with the three sets of file descriptor null.

Tests

  • 10 EPS output on Windows Server 2019.
  • Isolate delay procedure on Solaris 10 (test that nanosleep is available).
  • Isolate delay procedure on AIX 6.1 (test that nanosleep is available).

…econd.

The call to select() fails with an invalid parameter result.
@vikman90 vikman90 self-assigned this Feb 1, 2021
@vikman90 vikman90 linked an issue Feb 1, 2021 that may be closed by this pull request
@vikman90 vikman90 changed the base branch from master to 4.1 February 1, 2021 17:53
Copy link
Contributor

@chemamartinez chemamartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vikman90 vikman90 merged commit c60ea6b into 4.1 Feb 3, 2021
@vikman90 vikman90 deleted the 4.1-fix-buffer-eps branch February 3, 2021 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anti-flooding mechanism does not work in windows
2 participants