<html><head></head><body>Hi Jaak,<br><br>> However, if the connection hangs and no progress is made, is control<br>> ever passed to the status reporters (before timing out)?<br> <br>No, not before timing out. The purpose of the terminate() method is to cancel a healthy running install. I don't know of a safe way to stop ftplib or libcurl once you've told it to connect and before it times out. If you have any ideas, I'm all ears. But I think the request here was to both:<br><br>a) provide a mechanism to adjust the timeout,<br>b) request to cancel a long running, healthy installation process.<br><br>And I believe they are both covered now.<br><br>Let me know if you have any suggestions for improvement.<br><br>Troy<br><br><div class="gmail_quote">On August 27, 2020 11:10:18 PM GMT+02:00, Jaak Ristioja <jaak@ristioja.ee> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Thank you, Troy! You wrote in the comment:<br><br> /** Request nicely to terminate an ongoing transfer.<br> * If threading is a concern, consider calling terminate() from your<br>status reporters<br> * as they are typically the link between the transfer thread and<br>your UI.<br> */<br><br>However, if the connection hangs and no progress is made, is control<br>ever passed to the status reporters (before timing out)?<br><br>J<br><br>On 27.08.20 21:37, Troy A. Griffitts wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Hi Tobias,<br>CURLOPT_TIMEOUT_MS<br>Yes, you can let your users cancel an install by calling the<br>InstallMgr::terminate() method. I have just now commented this method<br>better so its purpose is more clear. My apologies, Jaak, for not having<br>this commented better for you.<br><br>Troy<br><br><br>On 8/8/20 9:30 AM, Tobias Klein wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Hi,<br><br> Is there a way to abort a module installation via the SWORD API?<br> I saw in InstallMgr::installModule that there is some handling for<br> when the user aborted the process. But it doesn't seem like this is<br> controlled via the API.<br><br> One typical use case would be that the user's download speed is<br> currently slower then acceptable (whether due to internet issues or<br> server issues). In this case, instead of waiting "forever" one may<br> want to abort a download/installation.<br><br> Also, another question in the same context: Is it possible to<br> configure a custom timeout for the download of modules? What happens<br> if a repository server goes down? I remember one time when the Xiphos<br> repo was not available, waiting times seemed to be too long in the<br> frontend (based on long default timeouts in SWORD?).<br><br> Best regards,<br> Tobias<hr> sword-devel mailing list: sword-devel@crosswire.org<br> <a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br> Instructions to unsubscribe/change your settings at above page<br></blockquote><hr>sword-devel mailing list: sword-devel@crosswire.org<br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></blockquote><hr>sword-devel mailing list: sword-devel@crosswire.org<br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page</pre></blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>