[sword-devel] Abort module installation via API + Customnetwork timeouts

Tobias Klein contact at tklein.info
Tue Nov 3 02:39:40 EST 2020


Hi Troy,

Just some feedback: I have now implemented the "cancel module 
installation" feature in Ezra Project and it works nicely based on the 
InstallMgr::terminate() method!

Best regards,
Tobias

On 8/28/20 6:22 PM, Tobias Klein wrote:
>
> Thanks! I’ll certainly make use of this!
>
> Tobias
>
> *From: *Troy A. Griffitts <mailto:scribe at crosswire.org>
> *Sent: *Donnerstag, 27. August 2020 20:52
> *To: *SWORD Developers' Collaboration Forum 
> <mailto:sword-devel at crosswire.org>
> *Subject: *Re: [sword-devel] Abort module installation via API + 
> Customnetwork timeouts
>
> Hi Tobias,
>
> Yes, you can let your users cancel an install by calling the
>
> InstallMgr::terminate() method.  I have just now commented this method
>
> better so its purpose is more clear.  My apologies, Jaak, for not having
>
> this commented better for you.
>
> Troy
>
> On 8/8/20 9:30 AM, Tobias Klein wrote:
>
> > Hi,
>
> >
>
> > Is there a way to abort a module installation via the SWORD API?
>
> > I saw in InstallMgr::installModule that there is some handling for
>
> > when the user aborted the process. But it doesn't seem like this is
>
> > controlled via the API.
>
> >
>
> > One typical use case would be that the user's download speed is
>
> > currently slower then acceptable (whether due to internet issues or
>
> > server issues). In this case, instead of waiting "forever" one may
>
> > want to abort a download/installation.
>
> >
>
> > Also, another question in the same context: Is it possible to
>
> > configure a custom timeout for the download of modules? What happens
>
> > if a repository server goes down? I remember one time when the Xiphos
>
> > repo was not available, waiting times seemed to be too long in the
>
> > frontend (based on long default timeouts in SWORD?).
>
> >
>
> > Best regards,
>
> > Tobias
>
> >
>
> > _______________________________________________
>
> > sword-devel mailing list: sword-devel at crosswire.org
>
> > http://www.crosswire.org/mailman/listinfo/sword-devel
>
> > Instructions to unsubscribe/change your settings at above page
>
> _______________________________________________
>
> sword-devel mailing list: sword-devel at crosswire.org
>
> http://www.crosswire.org/mailman/listinfo/sword-devel
>
> Instructions to unsubscribe/change your settings at above page
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20201103/627c210f/attachment.html>


More information about the sword-devel mailing list