[Info-vax] Mailbox driver analysis regarding greater than 65535 messages in mailbox

Marc Van Dyck marc.gr.vandyck at invalid.skynet.be
Tue Dec 1 12:42:29 EST 2020


Hein RMS van den Heuvel submitted this idea :
> But still 
> they can keep writing and reading peaking above 64K messages only getting a 
> non-success status when the mailbox is empty. Correct? If so, IMHO that 
> behaviour should not be willingly broken.  Maybe an alternate success status, 
> but even that could break applications testing for status == SS$_NORMAL.
>

No. If you look at the test I described in my original copy, you can
write any number of messages you want, but you can't read them all
back. The next time that the message count 16 bits field gets back to
zero, the read operation returns an "end of file" status and the
messages still remaining in the mailbox become inaccessible. In my 
test,
I stored 1.000.000 messages, but could only read back some 16.000 of
them.

I would also agree with the proposal to refuse the creation of a
mailbox with more than 65535 positions.

-- 
Marc Van Dyck



More information about the Info-vax mailing list