Door Games Unlimited

Welcome, Guest.


Subject: Posting a message with messagebase open Date: Wed Jul 15 2015 07:29:25
From: Nightfox To: Digital Man

  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.

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

 DM> Since no one else is reporting the problem you're seeing, I suggest trying
 DM> to "undo" some of your mods. Or just as a test, don't use of the 3rd party
 DM> 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

Previous Message       Next Message
In Reply To: Posting a message with messagebase open (Digital Man)
Replies: Posting a message with messagebase open (Psi-Jack)