<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#f4f6f6">
Great, Tobias,<br>
<br>
thanks!<br>
<br>
<div class="moz-cite-prefix">On 03.12.2019 14:10, Tobias Brunner
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:0d3f0731-0773-701e-71bc-dfde6bc59c05@strongswan.org">
<pre class="moz-quote-pre" wrap="">Hi Volodymyr,
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Processing starts only upon iterating of "t". This is every-time
reproduceable behaviour.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
That's because terminate() (and any other command wrapper that uses
streamed_request()) returns a Python generator, which is only evaluated
once you enumerate it. If you are not interested in log messages (in
particular with timeout set to -1, in which case none will be returned
anyway) you could also send the request directly with
v.request('terminate', {
'ike-id': ike_id,
'timeout': ...
})
Regards,
Tobias
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison</pre>
</body>
</html>