• Posting a message with messagebase open

    From Nightfox@DIGDIST to Digital Man on Saturday, July 11, 2015 14:17:12
    Hi DM,

    While using my message reader (written in JavaScript), I've noticed that if it has a sub-board open with a MessageBase object and lets the user post a message in that sub-board, in Linux, the MessageBase object doesn't seem to get updated with the number of messages in the sub-board. In Linux, it seems that I have to close and re-open the sub-board for it to refresh with the latest information on that sub-bobard. In Windows, that doesn't seem to be the case - After posting the message, the MessageBase object seems to get updated and has the correct number of messages in the sub-board. Is that a known issue? If a JavaScript script has a sub-board open, it it generally safest to close the sub-board before posting a message in that sub-board?

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Psi-Jack@DECKHVN2 to Nightfox on Saturday, July 11, 2015 21:19:17
    Re: Posting a message with messagebase open
    By: Nightfox to Digital Man on Sat Jul 11 2015 02:17 pm

    While using my message reader (written in JavaScript), I've noticed that if it has a sub-board open with a MessageBase object and lets the user post a message in that sub-board, in Linux, the MessageBase object doesn't seem to get updated with the number of messages in the sub-board. In

    Yeah.. I've noticed this as well..
    Along with, and it's not at all consistent, sometimes when posting a message it just crashes and hangs up, without ever posting the message, and I don't think this is a SlyEdit issue either as it happends just after the save occurs and only then. Also, Synchronet 3.16 on Linux from CVS builds.

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

    ... Mistrust first impulses, they are always good.

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

    While using my message reader (written in JavaScript), I've noticed
    that if it has a sub-board open with a MessageBase object and lets
    the user post a message in that sub-board, in Linux, the MessageBase
    object doesn't seem to get updated with the number of messages in
    the sub-board. In

    Yeah.. I've noticed this as well..
    Along with, and it's not at all consistent, sometimes when posting a message it just crashes and hangs up, without ever posting the message, and I don't think this is a SlyEdit issue either as it happends just after the save occurs and only then.

    I've noticed that sometimes too, in Windows. It seems to happen randomly, so I don't know how to reproduce it. My guess would be that if you happen to be posting a message at the same time that the sub-board messagebase is being updated (via a QWK update), maybe there's some resource conflict that causes a crash. I haven't verified that theory though. I made a local update to my message reader to close its MessageBase object while posting a message and re-open the MessageBase after the posting is done - That seems to allow the total number of messages to be updated (in Linux), and hopefully it will make it more stable too. I'll release an update to my reader after more testing.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Psi-Jack@DECKHVN2 to Nightfox on Sunday, July 12, 2015 16:26:53
    Re: Posting a message with messagebase open
    By: Nightfox to Psi-Jack on Sat Jul 11 2015 08:37 pm

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

    While using my message reader (written in JavaScript), I've noticed
    that if it has a sub-board open with a MessageBase object and lets
    the user post a message in that sub-board, in Linux, the
    MessageBase object doesn't seem to get updated with the number of
    messages in the sub-board. In

    Yeah.. I've noticed this as well..
    Along with, and it's not at all consistent, sometimes when posting a
    message it just crashes and hangs up, without ever posting the
    message, and I don't think this is a SlyEdit issue either as it
    happends just after the save occurs and only then.

    I've noticed that sometimes too, in Windows. It seems to happen randomly, so I don't know how to reproduce it. My guess would be that if you happen to be posting a message at the same time that the sub-board messagebase is being updated (via a QWK update), maybe there's some resource conflict that causes a crash. I haven't verified that theory though. I made a local update to my message reader to close its MessageBase object while posting a message and re-open the MessageBase after the posting is done - That seems to allow the total number of messages to be updated (in Linux), and hopefully it will make it more stable too. I'll release an update to my reader after more testing.

    Cool.. I will try it out when you do then. :)

    I'm currently testing an idea of actually running Synchronet on CentOS 7, and so far, after grinding thoroughly through building custom RPMs for DOSEMU, BinkD, and Husky Tools, the main software needed for my full setup, I am actually coming up with astonishing results.

    I even went above and beyond and made a DOS door maintenance script that would parallel run through each door that was configured in the script to allow running 2+ dosemu sessions at the same time one for each door, and tracking of each one.

    Unfortunately the one limitation was: I ended up using 4DOS 8.00 (Freeware), to get proper logging done. I could never get FreeDOS's command.com to allow me to capture the date and time into a variable to output to a logfile, but this allows me now to track that each door actually ran to completion, and not aborted out in a DOSEMU crash. :D

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

    ... I reserve my abuse for lower life forms, like Civil Servants.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Nightfox@DIGDIST to Psi-Jack on Sunday, July 12, 2015 13:50:28
    Re: Posting a message with messagebase open
    By: Psi-Jack to Nightfox on Sun Jul 12 2015 16:26:53

    I'm currently testing an idea of actually running Synchronet on CentOS 7, and so far, after grinding thoroughly through building custom RPMs for DOSEMU, BinkD, and Husky Tools, the main software needed for my full setup, I am actually coming up with astonishing results.

    That's cool. CentOS is definitely a fairly good & stable server OS (since it's based on RedHat). I'm currently running Mint Linux on my BBS machine (although my BBS is running in a Windows XP VM), but I've considered possibly switching my BBS over to Linux at some point. Mint Linux seems to work well for Synchronet so far, but I had considered CentOS too.

    I even went above and beyond and made a DOS door maintenance script that would parallel run through each door that was configured in the script to allow running 2+ dosemu sessions at the same time one for each door, and tracking of each one.

    Unfortunately the one limitation was: I ended up using 4DOS 8.00 (Freeware), to get proper logging done. I could never get FreeDOS's command.com to allow me to capture the date and time into a variable to output to a logfile, but this allows me now to track that each door actually ran to completion, and not aborted out in a DOSEMU crash. :D

    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.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Psi-Jack@DECKHVN2 to Nightfox on Sunday, July 12, 2015 23:16:49
    Re: Posting a message with messagebase open
    By: Nightfox to Psi-Jack on Sun Jul 12 2015 01:50 pm

    I'm currently testing an idea of actually running Synchronet on
    CentOS 7, and so far, after grinding thoroughly through building
    custom RPMs for DOSEMU, BinkD, and Husky Tools, the main software
    needed for my full setup, I am actually coming up with astonishing
    results.

    That's cool. CentOS is definitely a fairly good & stable server OS (since it's based on RedHat). I'm currently running Mint Linux on my BBS machine (although my BBS is running in a Windows XP VM), but I've considered possibly switching my BBS over to Linux at some point. Mint Linux seems to work well for Synchronet so far, but I had considered CentOS too.

    Heh yeah. I've used Debian & Ubuntu, but DOSEMU on both of those would go
    wonky after a few days. Still don't know actual root cause, but just oddities that were major abnormalities. My CentOS 7 system I'm testing out now, and looking to migrate my BBS to, since it's so easy to move Synchronet around when needed. Mostly I'm just trying to get away from Arch/Manjaro fully because I don't want to maintain my in-house repo for them anymore, and that becomes a sticky situation when it continues to be updated all the time.

    I even went above and beyond and made a DOS door maintenance script
    that would parallel run through each door that was configured in the
    script to allow running 2+ dosemu sessions at the same time one for
    each door, and tracking of each one.

    Unfortunately the one limitation was: I ended up using 4DOS 8.00
    (Freeware), to get proper logging done. I could never get FreeDOS's
    command.com to allow me to capture the date and time into a variable
    to output to a logfile, but this allows me now to track that each
    door actually ran to completion, and not aborted out in a DOSEMU
    crash. :D

    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 agree, but also think a limitation only because you /HAVE/ to go download 4DOS, install it, and move it to the DOSEMU Z drive afterwards, in order to use my system. But yeah, otherwise, 4DOS is awesome. Now freeware, makes it so much more awesome. The simple fact that %_DATE and %_TIME existed in 4DOS but not FreeDOS's command.com just makes me go hmmmm... FOR in FreeDOS doesn't even have /F, or any of the switches MS-DOS's FOR had. :/ The only way, with pure MS-DOS, to extract the date and time into usable variables was to get a third party DOS program, from GNU, sed, and awk, just to export the date to a file and read it back in then delete the file. Horrible, horrible, HORRIBLE. ;)

    I tried CentOS before, since I'm a big user of it, and prefer RPM over any other package format. But, with no tools and little current knowledge at the time of what I'd need in order to run my BBS sanely and fully.. I opted to use something that already had it all. Now that I'm well enough beyond that, I was able to build all the RPMs myself, so now, CentOS 7 definitely has potential.

    And as you say, it's rock solid as a server. I wanted to get it on CentOS because most of my other VM's are already CentOS, and I wanted to be able to manage it with Chef like I do everything else. And because Manjaro and Arch both, no matter than acpid was running, they would not shutdown when kvm sent the ACPI signal to shut down, so many times they got forced offline uncleanly.

    I think by the end of this coming week, I'll have my BBS moved over to CentOS 7 fully, and nearly transparently, and sadly even better setup than before, since I'm taking the time to make things work simply better.

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

    ... I like long walks, especially when they are taken by people who annoy me.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Digital Man to Nightfox on Monday, July 13, 2015 15:35:58
    Re: Posting a message with messagebase open
    By: Nightfox to Digital Man on Sat Jul 11 2015 02:17 pm

    Hi DM,

    While using my message reader (written in JavaScript), I've noticed that if it has a sub-board open with a MessageBase object and lets the user post a message in that sub-board, in Linux, the MessageBase object doesn't seem to get updated with the number of messages in the sub-board. In Linux, it seems that I have to close and re-open the sub-board for it to refresh with the latest information on that sub-bobard. In Windows, that doesn't seem to be the case - After posting the message, the MessageBase object seems to get updated and has the correct number of messages in the sub-board. Is that a known issue?

    No.

    If a JavaScript script has a sub-board open, it it generally
    safest to close the sub-board before posting a message in that sub-board?

    It shouldn't matter. Are posting the message using the message base class or are you calling some other JS method (e.g. in the 'bbs' object) to post the message?

    Is the file system in use on Linux a shared file system (SMB/CIFS or NFS) or just a local file system?

    digital man

    Synchronet "Real Fact" #25:
    The Synchronet Web Server was written predominantly by Stephen Hurd (Deuce). Norco, CA WX: 85.5°F, 39.0% humidity, 12 mph ESE wind, 0.00 inches rain/24hrs
  • From Psi-Jack@DECKHVN2 to Digital Man on Monday, July 13, 2015 19:04:05
    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 03:35 pm

    Is the file system in use on Linux a shared file system (SMB/CIFS or NFS) or just a local file system?

    I can answer that one. Local. :)

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

    ... Superior ability breeds superior ambition. Spock, stardate 3141.9.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Digital Man to Psi-Jack on Monday, July 13, 2015 16:55:27
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Mon Jul 13 2015 07:04 pm

    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 03:35 pm

    Is the file system in use on Linux a shared file system (SMB/CIFS or NFS) or just a local file system?

    I can answer that one. Local. :)

    I suspect there may need to be a buffer flush (or something comparable) added somewhere. A small test case (e.g. that could just be run with jsexec) would be
    helpful in isolating and resolving the problem.

    digital man

    Synchronet "Real Fact" #15:
    Synchronet first supported FidoNet networking (with SBBSFIDO) in 1992.
    Norco, CA WX: 84.7°F, 35.0% humidity, 19 mph SE wind, 0.00 inches rain/24hrs
  • From Psi-Jack@DECKHVN2 to Digital Man on Monday, July 13, 2015 21:00:09
    Re: Posting a message with messagebase open
    By: Digital Man to Psi-Jack on Mon Jul 13 2015 04:55 pm

    Is the file system in use on Linux a shared file system (SMB/CIFS
    or NFS) or just a local file system?

    I can answer that one. Local. :)

    I suspect there may need to be a buffer flush (or something comparable) added somewhere. A small test case (e.g. that could just be run with jsexec) would be helpful in isolating and resolving the problem.

    I'd be happy to provide anything you need. I know I see the problem myself, and in my personal /specific/ case, if I post on the last message base of the forum I'm looking at, it doesn't refresh until I move to a previous message then back again.

    My bigger problem is random BBS drops when navigating through messages, or finishing a post. That's my bigger problem. Not exactly the same issue Nightfox is trying to track down, but a more serious issue that I think is more Synchronet-specific, but I cannot verify, I just know Synchronet sees a disconnect, and nothing else, no error, nothing.

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

    ... Martyrdom is the only way a person can become famous without ability.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Nightfox@DIGDIST to Digital Man on Monday, July 13, 2015 19:31:16
    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 15:35:58

    If a JavaScript script has a sub-board open, it it generally
    safest to close the sub-board before posting a message in that
    sub-board?

    It shouldn't matter. Are posting the message using the message base class or are you calling some other JS method (e.g. in the 'bbs' object) to post the message?

    I'm calling either bbs.post_msg() or bbs.email(), depending the type of messagebase (networked or private email).

    Is the file system in use on Linux a shared file system (SMB/CIFS or NFS) or just a local file system?

    It's a local file system.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man to Nightfox on Monday, July 13, 2015 20:07:22
    Re: Posting a message with messagebase open
    By: Nightfox to Digital Man on Mon Jul 13 2015 07:31 pm

    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 15:35:58

    If a JavaScript script has a sub-board open, it it generally
    safest to close the sub-board before posting a message in that
    sub-board?

    It shouldn't matter. Are posting the message using the message base class or are you calling some other JS method (e.g. in the 'bbs' object) to post the message?

    I'm calling either bbs.post_msg() or bbs.email(), depending the type of messagebase (networked or private email).

    Is the file system in use on Linux a shared file system (SMB/CIFS or NFS) or just a local file system?

    It's a local file system.

    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).

    digital man

    Synchronet "Real Fact" #30:
    The Synchronet IRC server (ircd) was written in JS by Randy Sommerfeld (Cyan). Norco, CA WX: 76.8°F, 54.0% humidity, 5 mph SE wind, 0.00 inches rain/24hrs
  • From Nightfox@DIGDIST to Digital Man on Tuesday, July 14, 2015 07:58:09
    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 20:07:22

    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 just updated and gave it a try in Linux, but I'm still seeing the issue.
    I created a small JavaScript script to try to reproduce the issue, which would open a sub-board with a MessageBase object and let the user post a message while keeping the MessageBase object open, but my test script didn't show the issue. So I'm wondering if there's something else going on in my message reader causing the issue I'm seeing. I'll have to investigate it more.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man to Nightfox on Tuesday, July 14, 2015 16:11:08
    Re: Posting a message with messagebase open
    By: Nightfox to Digital Man on Tue Jul 14 2015 07:58 am

    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 20:07:22

    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 just updated and gave it a try in Linux, but I'm still seeing the issue.
    I created a small JavaScript script to try to reproduce the issue, which would open a sub-board with a MessageBase object and let the user post a message while keeping the MessageBase object open, but my test script didn't show the issue. So I'm wondering if there's something else going on in my message reader causing the issue I'm seeing. I'll have to investigate it more.

    Let me know if you narrow it down more.

    digital man

    Synchronet "Real Fact" #21:
    The second ever Synchronet BBS was the Mid-Nite Hacker BBS (sysop: The Zapper). Norco, CA WX: 83.9°F, 47.0% humidity, 9 mph SE wind, 0.00 inches rain/24hrs
  • From Psi-Jack@DECKHVN2 to Digital Man on Tuesday, July 14, 2015 19:30:46
    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 08:07 pm

    Is the file system in use on Linux a shared file system (SMB/CIFS
    or NFS) or just a local file system?

    It's a local file system.

    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'll try out this, after I check a few things, then try again if I find any results.

    What /I/ personally notice is that I randomly get dropped when posting, usually during prime time hours, when mail is being tossed the most. I wish I had a stats generator that could produce the flow of mail, where, and everything, but all I can do currently is with binkdstats.pl parsing binkd logs. I will fix this, and make more log parsers for synchronet specifically, heh.

    One thing I'm testing now is whether I start a reply, and DOVE net processes, if I get dropped when I save, after it's done, and what happened during that process. New in, new out.. So far, new out alone doesn't /appear/ to be causing issue, but inbound..

    So if you see this reply, that means I didn't crash after posting after a QWKnet packet.
    What did happen during that however was:
    evnt Finished Importing QWK Network Packet from VERT: (2 msgs) in 1 seconds (2 msgs/sec)

    So, here goes.

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

    ... Virtue is a relative term. Spock, Friday's Child, stardate 3499.1.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@DECKHVN2 to Digital Man on Tuesday, July 14, 2015 19:36:14
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Tue Jul 14 2015 07:30 pm

    So if you see this reply, that means I didn't crash after posting after a QWKnet packet.
    What did happen during that however was:
    evnt Finished Importing QWK Network Packet from VERT: (2 msgs) in 1 seconds (2 msgs/sec)

    Well, that went through without dropping me.

    Next test, inbound FTN messages, as per from sbbsecho.

    Results:
    Imported: 3 msgs in 0.0 sec (5806.5/min 96.8/sec)

    Let's see....

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

    ... Whatever it is, it won't work.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@DECKHVN2 to Digital Man on Tuesday, July 14, 2015 21:11:54
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Tue Jul 14 2015 07:36 pm

    Well, that went through without dropping me.

    Next test, inbound FTN messages, as per from sbbsecho.

    Results:
    Imported: 3 msgs in 0.0 sec (5806.5/min 96.8/sec)

    Let's see....

    Well, that obviously worked.

    However, as I was finishing my mail run, and the new scan completed, right at the very same time outbound FTN NetMail was processing and I was dropped from the connection.

    I am using primarily Hyper Allocation for my message bases. Though I've considered switching to Fast or Self-Packing, not knowing really what pitfalls each method has..

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

    ... That unit is a woman. A mass of conflicting impulses. Spock and Nomad

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Digital Man to Psi-Jack on Wednesday, July 15, 2015 00:08:32
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Tue Jul 14 2015 09:11 pm

    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Tue Jul 14 2015 07:36 pm

    Well, that went through without dropping me.

    Next test, inbound FTN messages, as per from sbbsecho.

    Results:
    Imported: 3 msgs in 0.0 sec (5806.5/min 96.8/sec)

    Let's see....

    Well, that obviously worked.

    However, as I was finishing my mail run, and the new scan completed, right at the very same time outbound FTN NetMail was processing and I was dropped from the connection.

    I am using primarily Hyper Allocation for my message bases. Though I've considered switching to Fast or Self-Packing, not knowing really what pitfalls each method has..

    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.

    digital man

    Synchronet "Real Fact" #22:
    The third ever Synchronet BBS was The Beast's Domain (sysop: King Drafus). Norco, CA WX: 62.1°F, 89.0% humidity, 2 mph SSE wind, 0.00 inches rain/24hrs
  • From Nightfox@DIGDIST to Digital Man on Wednesday, July 15, 2015 07:29:25
    Re: Posting a message with messagebase open
    By: Digital Man to Psi-Jack on Wed Jul 15 2015 00:08:32

    However, as I was finishing my mail run, and the new scan completed,
    right at the very same time outbound FTN NetMail was processing and I
    was dropped from the connection.

    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();
    }


    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Khelair@TINFOIL to Nightfox on Wednesday, July 15, 2015 11:02:38
    Re: Posting a message with messagebase open
    By: Nightfox to Psi-Jack on Sun Jul 12 2015 13:50:28

    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.

    ---
    Borg Burgers: We do it our way; your way is irrelevant.
    ■ Synchronet ■ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.net
  • From Psi-Jack@DECKHVN2 to Digital Man on Wednesday, July 15, 2015 15:09:21
    Re: Posting a message with messagebase open
    By: Digital Man to Psi-Jack on Wed Jul 15 2015 12:08 am

    I am using primarily Hyper Allocation for my message bases. Though
    I've considered switching to Fast or Self-Packing, not knowing really
    what pitfalls each method has..

    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 plan to do exactly that as well, disable a few things and see. May do that after I migrate to CentOS 7, maybe before. :)

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

    ... But, He has not one redeeming vice.

    ---
    ■ Synchronet ■ Decker's Heaven -//- bbs.deckersheaven.com
  • From Psi-Jack@DECKHVN2 to Nightfox on Wednesday, July 15, 2015 15:16:46
    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@DECKHVN2 to Khelair on Wednesday, July 15, 2015 15:18:08
    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 Nightfox@DIGDIST to Khelair on Wednesday, July 15, 2015 12:41:31
    I'm not sure I'd consider 4DOS a limitation, since (I believe) it's
    ful
    compatible with command.com. It's cool to hear that 4DOS is now >
    freeware. Ni> I used to use 4DOS in the early 90s, when DOS
    was my > Ni> primary OS, and I Ni> thought it provided some useful enhancements ove
    the command.com included Ni> with MS-DOS.

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

    I had always heard that DOS was meant to be simplified (as compared to UNIX & BSD, etc.) - I imagine command.com was probably made to be more simple than
    the Bash shell.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man to Nightfox on Wednesday, July 15, 2015 16:46:12
    Re: Posting a message with messagebase open
    By: Nightfox to Digital Man on Tue Jul 14 2015 07:58 am

    Re: Posting a message with messagebase open
    By: Digital Man to Nightfox on Mon Jul 13 2015 20:07:22

    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 just updated and gave it a try in Linux, but I'm still seeing the issue.
    I created a small JavaScript script to try to reproduce the issue, which would open a sub-board with a MessageBase object and let the user post a message while keeping the MessageBase object open, but my test script didn't show the issue. So I'm wondering if there's something else going on in my message reader causing the issue I'm seeing. I'll have to investigate it more.

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

    digital man

    Synchronet "Real Fact" #47:
    Synchronet directory naming (i.e. ctrl, exec, data) was suggested by S. Deppe. Norco, CA WX: 84.1°F, 42.0% humidity, 9 mph S wind, 0.00 inches rain/24hrs
  • From Nightfox@DIGDIST to Digital Man on Wednesday, July 15, 2015 20:08:41
    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.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man to Nightfox on Wednesday, July 15, 2015 21:39:41
    Re: Posting a message with messagebase open
    By: Nightfox to Digital Man on Wed Jul 15 2015 08:08 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 DM>> 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.

    digital man

    Synchronet "Real Fact" #57:
    The last version of Synchronet to run on MS-DOS and OS/2 was v2.30c (1999). Norco, CA WX: 68.1°F, 76.0% humidity, 2 mph ESE wind, 0.00 inches rain/24hrs
  • From Psi-Jack@DECKHVN2 to Digital Man on Thursday, July 16, 2015 02:31:24
    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 Digital Man to Psi-Jack on Thursday, July 16, 2015 02:39:40
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Thu Jul 16 2015 02:31 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.

    digital man

    Synchronet "Real Fact" #4:
    Synchronet version 3 for Win32 development began in 1999.
    Norco, CA WX: 61.3°F, 91.0% humidity, 1 mph ESE wind, 0.00 inches rain/24hrs
  • From Psi-Jack@DECKHVN2 to Digital Man on Thursday, July 16, 2015 08:58:39
    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 Accession@PHARCYDE to Psi-Jack on Thursday, July 16, 2015 18:46:02
    Hello Psi-Jack,

    On 16 Jul 15 08:58, Psi-Jack wrote to Digital Man:

    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.

    Current CVS codebase here as well (except for the newly committed flush call thing), and I don't think I've ever seen this problem you're describing before.
    Just figured I'd throw that into the mix, FYI.

    Regards,
    Nick

    --- GoldED+/LNX 1.1.5-b20150715
    * Origin: thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin) (723:1/701)
    ■ Synchronet ■ thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
  • From Digital Man to Psi-Jack on Thursday, July 16, 2015 19:06:40
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Thu Jul 16 2015 08:58 am

    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.

    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.

    digital man

    Synchronet "Real Fact" #41:
    Rob Swindell was laughed out of a FidoNet Net103 (OC, Calif.) meeting in 1992. Norco, CA WX: 77.5°F, 56.0% humidity, 10 mph SE wind, 0.00 inches rain/24hrs
  • From Psi-Jack@DECKHVN2 to Digital Man on Friday, July 17, 2015 00:41:23
    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 Digital Man to Psi-Jack on Friday, July 17, 2015 13:51:52
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Fri Jul 17 2015 12:41 am

    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.

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

    digital man

    Synchronet "Real Fact" #64:
    Synchronet can dynamically compress and uncompress message bases (using LZH). Norco, CA WX: 88.3°F, 38.0% humidity, 7 mph SE wind, 0.00 inches rain/24hrs
  • From Nightfox@DIGDIST to Psi-Jack on Friday, July 17, 2015 14:47:35
    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).

    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.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Deuce@SYNCNIX to Nightfox on Friday, July 17, 2015 16:23:00
    Re: Posting a message with messagebase open
    By: Nightfox to Psi-Jack on Fri Jul 17 2015 02:47 pm

    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.

    There were some Cryptlib issues in Synchronet for sure some time ago. I don't remember them impacting SyncTERM. But yeah, should be all fixed now (I usually
    use SSH).

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    ■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Psi-Jack@DECKHVN2 to Digital Man on Saturday, July 18, 2015 00:37:23
    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@DECKHVN2 to Nightfox on Saturday, July 18, 2015 00:38:47
    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 Mro@BBSESINF to Psi-Jack on Saturday, July 18, 2015 00:03:48
    Re: Posting a message with messagebase open
    By: Psi-Jack to Digital Man on Fri Jul 17 2015 12:41 am


    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.



    you may want to look into your hardware. netrunner's speed is just the same as all the other clients we use.

    i've used netrunner, syncterm, qodem, mtelnet and a few others. they are all pretty much the same in speed.
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From Nightfox@DIGDIST to Mro on Saturday, July 18, 2015 07:44:46
    Re: Posting a message with messagebase open
    By: Mro to Psi-Jack on Sat Jul 18 2015 00:03:48

    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,

    you may want to look into your hardware. netrunner's speed is just the same as all the other clients we use.

    i've used netrunner, syncterm, qodem, mtelnet and a few others. they are all pretty much the same in speed.

    I've also noticed that while NetRunner is fast, it's noticeably slower than SyncTerm, even on my local network with my own BBS. It's as if NetRunner is emulating a 115200 baud connection or something, whereas SyncTerm goes as fast as the connection will allow.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Mro@BBSESINF to Nightfox on Saturday, July 18, 2015 22:16:08
    Re: Posting a message with messagebase open
    By: Nightfox to Mro on Sat Jul 18 2015 07:44 am


    I've also noticed that while NetRunner is fast, it's noticeably slower than SyncTerm, even on my local network with my own BBS. It's as if NetRunner
    is emulating a 115200 baud connection or something, whereas SyncTerm goes
    as fast as the connection will allow.


    is this on windows or linux? i'm gonna try it right now on windows.
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From Nightfox@DIGDIST to Mro on Saturday, July 18, 2015 21:15:34
    Re: Posting a message with messagebase open
    By: Mro to Nightfox on Sat Jul 18 2015 22:16:08

    I've also noticed that while NetRunner is fast, it's noticeably slower
    than SyncTerm, even on my local network with my own BBS. It's as if
    NetRunner is emulating a 115200 baud connection or something, whereas
    SyncTerm goes as fast as the connection will allow.

    is this on windows or linux? i'm gonna try it right now on windows.

    It's on Windows.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com