Piotr Kliczewski has uploaded a new change for review. Change subject: jsonrpc: set default timeout value ......................................................................
jsonrpc: set default timeout value Change-Id: I1a8fd964fec20621cf4c13df49719b9a242854c1 Signed-off-by: pkliczewski <piotr.kliczew...@gmail.com> --- M lib/vdsm/jsonrpcvdscli.py 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/97/55397/1 diff --git a/lib/vdsm/jsonrpcvdscli.py b/lib/vdsm/jsonrpcvdscli.py index af0e9d6..d070a0a 100644 --- a/lib/vdsm/jsonrpcvdscli.py +++ b/lib/vdsm/jsonrpcvdscli.py @@ -73,10 +73,14 @@ self._vdsmapi = vdsmapi.get_api() self._client = client self._xml_compat = xml_compat + self._default_timeout = CALL_TIMEOUT self._timeouts = { 'migrationCreate': config.getint( 'vars', 'migration_create_timeout'), } + + def set_default_timeout(self, timeout): + self._default_timeout = timeout def _prepare_args(self, className, methodName, args, kwargs): sym = self._vdsmapi['commands'][className][methodName] @@ -102,7 +106,7 @@ responses = self._client.call( req, timeout=self._timeouts.get( method_name, - kwargs.pop('_transport_timeout', CALL_TIMEOUT))) + kwargs.pop('_transport_timeout', self._default_timeout))) if responses: resp = responses[0] else: -- To view, visit https://gerrit.ovirt.org/55397 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1a8fd964fec20621cf4c13df49719b9a242854c1 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Piotr Kliczewski <piotr.kliczew...@gmail.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches