Re: Re: Queues vs. Sockets
By: MCMLXXIX to Digital Man on Sat May 03 2008 12:35 pm
Re: Re: Queues vs. Sockets
By: MCMLXXIX to Digital Man on Wed Apr 30 2008 08:18:38
Named queues are *supposed* to be automatically deleted when the last "user" thread deletes their instance of the queue object (which *should* happen whenever the script terminates).
I first ran the multiplayer engine, then quit. It happens even if only one person runs it, but I set each script to ignore their own connection in the list so it's unnoticable.
Thenmade a test script that loops through the list_named_queues() array and logs the name, read_level, and write_level. Sometimes they
disappear, sometimes they don't. Don't know if that's of any help to
you.
Any luck duplicating those results?
I tried to reproduce your problem, but could not. I created a simple script (queue.js):
print("before:");
print(list_named_queues());
print("-");
new Queue("test");
console.pause();
print("after:");
print(list_named_queues());
print("-");
And I ran this one node, left it at the pause prompt, logged into another node and ran it again leaving the second instance also at the pause prompt. Then I hit a key on the first instance, hit a key on the second (so both scripts have now terminated) and when running it again, it shows there are no named queues. I tried letting the second script exit first and I get the same result.
Perhaps its the way in which you're executing the script (in the same scope as your command shell maybe?). I just used ";EXEC ?queue.js", which should simulate how it would execute as a door or loadable module. Or maybe you have to write to the queue before the anomoly occurs? I don't enough information currently to know. More details on how to reproduce the problem are requested! :-)
digital man (xbox-live: digitlman)
Snapple "Real Fact" #116:
The largest fish is the whale shark - it can be over 50 feet long and weigh 2 tons.
Norco, CA WX: 64.2øF, 67% humidity, 0 mph SE wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net