• Posting a message with messagebase open

    From Psi-Jack@VERT/DECKHVN2/DECKHVNT to Nightfox on Wed Jul 15 15:16:46 2015
    Re: Posting a message with messagebase open
    By: Nightfox to Digital Man on Wed Jul 15 2015 07:29 am

    The message base allocation method shouldn't make any difference
    with the problem you're describing.

    Since no one else is reporting the problem you're seeing, I suggest
    trying to "undo" some of your mods. Or just as a test, don't use of
    the 3rd party mods (e.g. message reader) you might be using.

    I've actually seen what I think he is describing. It seems to happen when I reply to a message using my reader. It happens rarely and randomly, so it's difficult to reproduce. I've noticed it in Windows (I think Psi-Jack is running Synchronet in Linux?).

    The other day I made a small JavaScript script that opens a sub-board with a MessageBase object, lets a user post a message while that MessageBase object is open, then closes the MessageBase object. I was trying to reproduce the issue in Linux where if a JS script has a MessageBase open and lets the user post a message in that sub-board, the MessageBase wasn't getting updated as far as the number of messages. I ran that small script on my Linux test setup, and while that script didn't reproduce that issue, I did see it crash Synchronet multiple times after I had saved my message. I tried it in my Windows Synchronet setup, and I didn't see it causing a crash there. This is the code (substitute the value of the subCode variable with a valid sub-board code on your BBS):

    load("sbbsdefs.js");

    subCode = "loc_general";
    var msgbase = new MsgBase(subCode);
    if (msgbase.open())
    {
    console.print("\1n\r\n# of messages (before posting): " + msgbase.total_msgs
    + "\r\n\1p");
    var msgHdr = msgbase.get_msg_header(true, msgbase.total_msgs-1, true);
    if (msgHdr != null)
    {
    bbs.post_msg(subCode, WM_NONE, msgHdr);
    console.print("\1n\r\n# of messages (after posting): " + msgbase.total_msgs
    + "\r\n\1p");
    }
    msgbase.close();
    }

    nice! I will take this code and test to see if I can get it to re-produce it at a faster rate, like setting it up in a loop. :D

    I can just create a local test board only I have access to and see what the results end up being.

    )))[Psi-Jack -//- Decker]

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@VERT/DECKHVN2/DECKHVNT to Khelair on Wed Jul 15 15:18:08 2015
    Re: Re: Posting a message with messagebase open
    By: Khelair to Nightfox on Wed Jul 15 2015 11:02 am

    I'm not sure I'd consider 4DOS a limitation, since (I believe) it's
    fully compatible with command.com. It's cool to hear that 4DOS is
    now freeware. I used to use 4DOS in the early 90s, when DOS was my
    primary OS, and I thought it provided some useful enhancements over
    the command.com included with MS-DOS.

    I loved 4dos. Such awesome enhancements for command.com's pointlessly lobotomized batch features.

    I will update that to say, I /love/ 4DOS, and I'm glad it's freeware now and in my Z:\4DOS DOSEMU drive. Totally dependant on it now with my monster setup, making maintenance much better.

    )))[Psi-Jack -//- Decker]

    ... You can tune a piano, but you can`t tuna fish.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@VERT/DECKHVN2/DECKHVNT to Digital Man on Thu Jul 16 02:31:24 2015
    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Wed Jul 15 2015 09:39 pm

    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Wed Jul 15 2015 16:46:12

    I just committed an additional file stream flush to the SMB
    "get status" function (in src/smblib). Please try this and if
    that doesn't fix it, provide more details or better yet, a
    small script to reproduce the problem (e.g. using jsexec).

    I hadn't actually commited the flush call yet. I just did. Please
    try again.

    I updated my Synchronet build on my Linux test system, and that seems
    to have fixed the issue I was seeing.

    Okay, good. There will probably be other flush-related commits to smblib since this highlights an issue with stale read-data that I was not aware of.

    This does not explain any crashes or unintended program exits you were seeing.

    I too confirm the issue Nightfox reported is resolved. I just finished migration from Manjaro to CentOS 7, and doing a lot of tests. So far, replied to a lot of forums, without a single hitch since the migration.. Kind of ... Well, very nice.. I'll continue to test and see what happends, along with using Nightfox's earlier script he posted to do more direct tests locally. I can easily hammer it down on a test board to see what causes it, if anything anymore.

    But, yes, thank you for fixing this issue as well. I noticed it, but thought nothing of it. It would load, just had to jump back a message, then back forwards before it would show up. Now it's instant as it should be.

    I just wonder if the same issue MAY had been causing the disconnects as well. As you say, it doesn't explain it, but if it resolves it at the same time...

    )))[Psi-Jack -//- Decker]

    ... But soft, what light through yonder tagline breaks?

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@VERT/DECKHVN2/DECKHVNT to Digital Man on Thu Jul 16 08:58:39 2015
    Re: Posting a message with messagebase open
    By: Digital Man to Psi-Jack on Thu Jul 16 2015 02:39 am

    I just wonder if the same issue MAY had been causing the disconnects
    as well. As you say, it doesn't explain it, but if it resolves it at
    the same time...

    I can't think of any logical connection between the two things.

    Yeah, definitely isn't. A message or two after this reply I made, I was dropped just while putting in the To, then Subject, then boom, disconnect.

    So, Not sure. Definitely still happening, with current CVS codebase.

    )))[Psi-Jack -//- Decker]

    ... Culture is what your butcher would have if he were a surgeon.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@VERT/DECKHVN2/DECKHVNT to Digital Man on Fri Jul 17 00:41:23 2015
    Re: Posting a message with messagebase open
    By: Digital Man to Psi-Jack on Thu Jul 16 2015 07:06 pm

    I just wonder if the same issue MAY had been causing the
    disconnects as well. As you say, it doesn't explain it, but if it
    resolves it at the same time...

    I can't think of any logical connection between the two things.

    Yeah, definitely isn't. A message or two after this reply I made, I
    was dropped just while putting in the To, then Subject, then boom, disconnect.
    So, Not sure. Definitely still happening, with current CVS codebase.

    Does it happen when you don't use the custom message reader mod?

    If it's a JS exception causing the termination, there should (normally) be some indication in the log output. I suppose it's possible that the script could handle the exception (whatever it is) and just terminate silently, but that's not normal.

    I haven't yet tried, but I'm going to be making my development shell utilize the internal message systems itself, but also I'm trying something else out as well before I finish that.

    The problem may actually be SyncTERM itself dropping the connection.. A potential situation I pondered.

    The way I'm currently testing this theory is sadly by using NetRunner. I hate this particular terminal app because it's so slow and clunky, and doesn't even support rlogin or ssh like I usually use. heh. And it's slow, even over LAN.

    So far, though, using NetRunner, I have yet to see a single disconnect, but I'm going to continue using it for the rest of this week to see.

    )))[Psi-Jack -//- Decker]

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@VERT/DECKHVN2/DECKHVNT to Digital Man on Sat Jul 18 00:37:23 2015
    Re: Posting a message with messagebase open
    By: Digital Man to Psi-Jack on Fri Jul 17 2015 01:51 pm

    The problem may actually be SyncTERM itself dropping the connection..
    A potential situation I pondered.

    The way I'm currently testing this theory is sadly by using NetRunner.
    I hate this particular terminal app because it's so slow and clunky,
    and doesn't even support rlogin or ssh like I usually use. heh. And
    it's slow, even over LAN.

    So far, though, using NetRunner, I have yet to see a single
    disconnect, but I'm going to continue using it for the rest of this
    week to see.

    And you could try different protocols in SyncTERM (e.g. Telnet instead of SSH).

    So far, so good with SyncTERM 1.0b 2015-07-15. Not 1 single hangup, yet.. That's using rlogin. I haven't yet changed protocols, because I'm trying to check same-condition different versions, to validate.

    )))[Psi-Jack -//- Decker]

    ... Conscience gets alot of credit that belongs to cold feet.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@VERT/DECKHVN2/DECKHVNT to Nightfox on Sat Jul 18 00:38:47 2015
    Re: Posting a message with messagebase open
    By: Nightfox to Psi-Jack on Fri Jul 17 2015 02:47 pm

    So far, though, using NetRunner, I have yet to see a single
    disconnect, but I'm going to continue using it for the rest of this
    week to see.

    And you could try different protocols in SyncTERM (e.g. Telnet instead
    of SSH).

    That reminds me, several years ago I noticed that when I was connected to my BBS via SSH (using SyncTerm), I would get disconnected from my BBS after some amount of time. It didn't seem to be related to posting messages or anything in particular. But I noticed that seemed to be fixed in more recent builds of Synchronet/SyncTerm.

    Well, I seem to be getting less random disconnects with just simply a newer version of SyncTERM. With cryptlib actually supplied in SyncTERM with this method, also finally /allows/ me to use ssh, too. :)

    )))[Psi-Jack -//- Decker]

    ... The English may not like music, but they absolutely love the noise it makes

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Nightfox@VERT/DIGDIST to Psi-Jack on Sun Jul 19 11:53:19 2015
    Re: Posting a message with messagebase open
    By: Psi-Jack to Nightfox on Sat Jul 11 2015 21:19:17

    This is another message from you that has somehow migrated to another board - I saw this in the Sports board on Dove-Net. This was originally in the Synchronet JavaScript board.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Mon Jul 20 00:10:39 2015
    Re: Posting a message with messagebase open
    By: Nightfox to Psi-Jack on Sun Jul 19 2015 11:53 am

    Re: Posting a message with messagebase open
    By: Psi-Jack to Nightfox on Sat Jul 11 2015 21:19:17

    This is another message from you that has somehow migrated to another board - I saw this in the Sports board on Dove-Net. This was originally in the Synchronet JavaScript board.

    And he's dumping dupes, apparently from DECKHVN2 to DECKHVNT.

    digital man

    Synchronet "Real Fact" #81:
    Flapuebarg unf vagreany ebg13 fhccbeg sbe fhcresvpvnyyl rapelcgvat grkg.
    Norco, CA WX: 69.9°F, 94.0% humidity, 2 mph NW wind, 0.86 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net