Closed mvduin closed 2 years ago
Just to add, RFC 3416 section 4.2.3 specifies three reasons why the number of varbinds in the response may be less than the total number of requested varbinds (N + M * R
where N is the number of non-repeaters, R the number of repeaters, and M the max number of repetitions):
The second and third conditions will result in a response with varbinds for all non-repeaters and one or more complete sets of repeaters, but the first (and most common) condition imposes no such constraint. In fact, the RFC explicitly notes that "the number of variable bindings removed has no relationship to the values of N, M, or R.".
Even zero varbinds is acceptable, indicating that including even the first varbind would cause the response to exceed the message size constraints. GetBulkRequest should never get a tooBig
error as response.
Thanks for this @mvduin ! I've merged into master now and published in version 3.7.2 of the npm.