• newslink.js - import PTRs

    From Ash-Fox@VERT to DOVE-Net.Synchronet_JavaScript on Fri Nov 16 16:04:08 2007
    Greetings all,ããRecently I've linked my BBS to a rather unreliable news server (there isãunique groups on there that other news servers don't have). Unfortunatelyãbecause of it's unreliability I've had a bunch of issues trying to mirrorãall the content, as I keep running into various problems such as:ãã- Random disconnectsã- Infinite loop (100000000 branches) detected issueããTo get around the Infinite loop problem, I tried setting at the beginning ofãnewslink.js the following:ããbranch_limit = "0";ããUnfortunately, that seems to do nothing at all.ããWhenever a random issue happens, be it disconnection or infinite loop, theãmessage import PTRs are not updated, so, the BBS starts from the beginningãand ignores a bunch of messages after downloading them as it already hasãthem.ããI looked at the sourcecode of where the pointers are retrieved, from myãunderstanding it's from the .snl file in /data/subs/. Unfortunately when Iãopen it up, it's in some binary format I don't quite understand. Looking atãthe javascript code, used newslink.js, I'm just not getting how it's set.ãSo I can't manually fix the number.ããI've resorted to temporarily hardcoding the PTR number in the newslink.js,ãbut I think a better workaround would be updating the PTR number inãthe .snl file everytime a article is downloaded, rather than when theãentire transaction is complete.ããWhile I do more or less understand what's going on in newslink.js, I'mãreally confused about what I would need to modify in the file to make thisãhappen and would appreciate help on this. I also consider the fact thatãPTRs aren't updated with every article download is a bug.ãã~Ash-Foxã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Ash-Fox on Sat Nov 17 21:10:16 2007
    Re: newslink.js - import PTRsã By: Ash-Fox to DOVE-Net.Synchronet_JavaScript on Fri Nov 16 2007 04:04 pmãã > Greetings all,ã > ã > Recently I've linked my BBS to a rather unreliable news server (there isã > unique groups on there that other news servers don't have). Unfortunatelyã > because of it's unreliability I've had a bunch of issues trying to mirrorã > all the content, as I keep running into various problems such as:ã > ã > - Random disconnectsã > - Infinite loop (100000000 branches) detected issueã > ã > To get around the Infinite loop problem, I tried setting at the beginning ofã > newslink.js the following:ã > ã > branch_limit = "0";ã > ã > Unfortunately, that seems to do nothing at all.ããThat's because branch_limit is a property of the 'js' object, so you would wantãto use:ããjs.branch_limit = 0;ããinstead.ãã > Whenever a random issue happens, be it disconnection or infinite loop, theã > message import PTRs are not updated, so, the BBS starts from the beginningã > and ignores a bunch of messages after downloading them as it already hasã > them.ããA disconnection will not cause the PTRs to not be updated. Only a JS exceptionã(like the infinite loop detection) would cause that.ãã > I looked at the sourcecode of where the pointers are retrieved, from myã > understanding it's from the .snl file in /data/subs/. Unfortunately when Iã > open it up, it's in some binary format I don't quite understand. Looking atã > the javascript code, used newslink.js, I'm just not getting how it's set.ã > So I can't manually fix the number.ã > ã > I've resorted to temporarily hardcoding the PTR number in the newslink.js,ã > but I think a better workaround would be updating the PTR number inã > the .snl file everytime a article is downloaded, rather than when theã > entire transaction is complete.ã > ã > While I do more or less understand what's going on in newslink.js, I'mã > really confused about what I would need to modify in the file to make thisã > happen and would appreciate help on this. I also consider the fact thatã > PTRs aren't updated with every article download is a bug.ããI'd suggest limiting the number of messages downloaded per execution ofãnewslink.js and that'll avoid the problem altogether with no modification ofãnewslink.js necessary.ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #96:ãThe average American will eat 35,000 cookies in his/her lifetime.ãNorco, CA WX: ---.-øF, --% humidity, NaN mph --- wind, --.-- inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Ash-Fox@VERT to Digital Man on Mon Nov 19 13:02:04 2007
    Digital Man wrote:ããã> I'd suggest limiting the number of messages downloaded per execution ofã> newslink.js and that'll avoid the problem altogether with no modificationã> of newslink.js necessary.ã> ããThanks for the help.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã