FreenetURI uri = WoTMessageList.generateURI(identity, index).sskForUSK(); // We must use a SSK to disallow redirects.
FetchContext fetchContext = mClient.getFetchContext();
fetchContext.maxSplitfileBlockRetries = 2; /* 3 and above or -1 = cooldown queue. -1 is infinite */
fetchContext.maxNonSplitfileRetries = 2;
fetchContext.maxOutputLength = WoTMessageListXML.MAX_XML_SIZE; // TODO: fetch() also takes a maxSize parameter, why?
ClientGetter g = mClient.fetch(uri, WoTMessageListXML.MAX_XML_SIZE, mRequestClient, this, fetchContext, RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS);
addFetch(g);
Logger.normal(this, "Trying to fetch MessageList from " + uri);
// Not necessary because it's not a HashSet but a fixed-length queue so the identity will get removed sometime anyway.
//catch(RuntimeException e) {