-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matthew Toseland a ?crit : > HLSC doesn't do persistent requests. You'll have to create them directly. The > two obvious code examples are fproxy and HLSCImpl itself. Basically you need > to set MaxRetries to -1 on the context object; you probably don't want it to > be actually persistent (i.e. stored on disk), but you do want it > non-blocking. HLSCImpl creates a ClientGetter, feeds it a callback object and > uses that to do blocking; if you can emulate this you can do what you want > (most everything is available through Node). Alternatively, we could add a > method on HighLevelSimpleClient to do this for you - you'd feed it a > FetchContext and a ClientCallback ... Added the necessary method in SVN > r21572. > > FetchContext fetchContext = hlsc.getFetchContext(); > fetchContext.maxSplitfileBlockRetries = -1; // retry forever > fetchContext.maxNonSplitfileRetries = -1; // retry forever > hlsc.fetch(uri, maxSize, contextObject, callback, fetchContext); > > If this doesn't throw then the callback will be called when it is done.
Thanks, I'll try that ! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIlFQ2mY5qNqKdYw0RAollAJ40riwO2y1v3HVVihyCOcJm9huPIwCeLK6l cA5oglNpwbunTwXjS5Wio1c= =HcfZ -----END PGP SIGNATURE-----
