You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a response is larger than 4096 bytes, the following error is raised:
[...]
File "/home/users/malbert/work/private/puresnmp/puresnmp/api/pythonic.py", line 183, in bulkwalk
for oid, value in result:
File "/home/users/malbert/work/private/puresnmp/puresnmp/api/pythonic.py", line 117, in multiwalk
for oid, value in raw_output:
File "/home/users/malbert/work/private/puresnmp/puresnmp/api/raw.py", line 203, in multiwalk
timeout)
File "/home/users/malbert/work/private/puresnmp/puresnmp/api/raw.py", line 408, in fetcher
port=port, timeout=timeout)
File "/home/users/malbert/work/private/puresnmp/puresnmp/api/raw.py", line 367, in bulkget
raw_response = Sequence.from_bytes(response)
File "/home/users/malbert/work/private/puresnmp/puresnmp/x690/types.py", line 153, in from_bytes
cls, expected_length, len(data)))
ValueError: Corrupt packet: Unexpected length for <class 'puresnmp.x690.types.Sequence'> Expected 6501 (0x1965) but got 4092 (0xffc)
This is due to the way sock.recv is used in puresnmp.transport. It only fetches one chunk and does not continue reading after that.
The text was updated successfully, but these errors were encountered:
Closed in last commit and released as hotfix release 1.2.2. Patch has also been applied to the release branch 1.3.0 but it's not released yet. It will be included in 1.3.0rc6
When a response is larger than 4096 bytes, the following error is raised:
This is due to the way
sock.recv
is used inpuresnmp.transport
. It only fetches one chunk and does not continue reading after that.The text was updated successfully, but these errors were encountered: