aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authorAndrew Lynch <andrew.lynch@ni.com>2019-10-11 14:28:49 -0500
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-03-05 12:07:25 -0600
commit5e7a2458a83f724eb5fb268dd0f670dcd4a18e66 (patch)
tree49cf096f95ce5ef38d09409c8a3a606e1b4d76e3 /mpm
parent8811684068bcda6e91490e699d7dd8275c3bec0f (diff)
downloaduhd-5e7a2458a83f724eb5fb268dd0f670dcd4a18e66.tar.gz
uhd-5e7a2458a83f724eb5fb268dd0f670dcd4a18e66.tar.bz2
uhd-5e7a2458a83f724eb5fb268dd0f670dcd4a18e66.zip
mpm: explicitly set max buffer size for msgpack unpacker
Msgpack version 0.6 reduced the default max buffer size to 1MB which is smaller than the bitfiles. This change sets the max buffer size to 50MB which is larger than the bitfiles.
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/rpc_server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py
index 667058bd2..29fdd185f 100644
--- a/mpm/python/usrp_mpm/rpc_server.py
+++ b/mpm/python/usrp_mpm/rpc_server.py
@@ -96,6 +96,7 @@ class MPMServer(RPCServer):
# first the commands need to be registered
super(MPMServer, self).__init__(
pack_params={'use_bin_type': True},
+ unpack_params={'max_buffer_size': 50000000},
)
self._state.system_ready.value = True
self.log.info("RPC server ready!")
@@ -476,6 +477,7 @@ class MPMServer(RPCServer):
# changes in future versions of RPCServer may cause issues.
super(MPMServer, self).__init__(
pack_params={'use_bin_type': True},
+ unpack_params={'max_buffer_size': 50000000},
)
def reset_mgr(self):