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

MDM Agent: Use auto-calculated buffer size in IPRoute.get() call #470

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def monitor_interfaces(self):
try:
# Hox! get() is a blocking call thus stop() doesn't
# have much affect when execution is blocked within get().
messages = self.__ipr.get()
# TODO - Using bufsize=-1 is broken in pyroute2 0.7.12
# NOTE - bufsize=-1 required to prevent "No buffer space available" error
messages = self.__ipr.get(bufsize=-1)
for msg in messages:
if msg["event"] == "RTM_NEWLINK" or msg["event"] == "RTM_DELLINK":
interface_info = self.__get_interface_info(msg)
Expand Down
Loading