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

Fixed read buffer size on GetBulk/Walk requests - fixes #45 #46

Closed
wants to merge 2 commits into from

Conversation

codedance
Copy link
Contributor

Addresses #45 .

  • GetBulk (aka Walk) performance improvements. GetBulk will require a large
    recv packet. The despatch call is now passed the expected PDU count
    rather than the request PDU count (which is always 1 on a GetBulk request)
  • Fixed an Windows OS problem/bug. A UDP read with a undersized buffer raises
    and error rather than truncates data. Added code to handle this case.
  • Minor comment to understand rxBufSizeMax (2 x standard MTU size).
  • Minor debug logging addition (not in hot code)

* GetBulk (aka Walk) performance improvements.  GetBulk will require a large
  recv packet.  The despatch call is now passed the expected PDU count
  rather than the request PDU count (which is always 1 on a GetBulk request)

* Fixed an Windows OS problem/bug.  A UDP read with a undersized buffer raises
  and error rather than truncates data.  Added code to handle this case.

* Minor comment to understand rxBufSizeMax (2 x standard MTU size).
@soniah
Copy link
Collaborator

soniah commented Feb 24, 2015

ACK. Or more correctly, SYN-ACK :-)

@codedance
Copy link
Contributor Author

SNMP is UDP though.... I've hence just assumed you'd get back, and will just nag until you do :-)

@soniah
Copy link
Collaborator

soniah commented Feb 25, 2015

Thanks @codedance for all your work here. I fixed a spell-o and squashed be commits, then merged.

FIN, I don't need no stinkin UDP :-)

@soniah soniah closed this Feb 25, 2015
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.

None yet

3 participants