07-13-2009 08:10 AM
Hello everyone,
I'm trying to change the machine access list in a VI-Server in run (programmatically). I can add clients in run without any problems, but i cant remove clients without restarting the TCP-listener witch would cause all clients connected to get disconnected. Anyone know a way around this?
LabVIEW 8.6 (windows and linux)
Thanks,
Tomas
07-14-2009 04:59 AM
Hi,
I tried also to change the access list with a property node, this works fine in my small example:
Can you explain in more detail what you want to do (what is already opened, etc ...) or try to post a modified example which shows the behaviour.
Thanks and best regards
Alex
NI Switzerland
07-14-2009 06:53 AM
Hey,
Thanks for responding.
I can try to explain a bit more what I'm trying to do. I'm trying to build a VI-Server system with a main server and a backup server on different machines and even different platforms (windows and linux). I would like to change the access list when the server is running. eg if a client are making so many connections that the performance are going down, I would like to be able to "kick" that client from the server without causing problems for the other clients. I have been experimenting a bit with this and found some strange behaviour, I can add machines/adresses to the access list without problems, but i can't remove machines/adresses (put a "-" before the names) without restarting the tcp/ip-listener. This can cause that the clients get a timeout (depending on the clients refresh rate) and jump over to the backupserver (not good).
Picture showing what i have to do to change the tcp/ip-access in windows:
Another issue regarding linux. When I restart the server (running on linux) when there are clients connected, the tcp/ip-listener get a 60 second timeout. It's not a big problem since the clients automaticly jump over to the backup server, but it is a bit annoying. Could there be a setting in a .ini file or a environment variable or something?
Cheers,
Tomas
07-14-2009 08:47 AM
Hi,
I´m not quit sure, but what happens if you try to remove the machine from the list using a delete from array function instead of "deny" with a minus? I tried a little bit around and thought this might fit! Please make a small test and let me know what you think!
The other question might take some time. I will try to get one from R&D in Austin answering this question.
Best regards
Alex
NI Switzerland
07-14-2009 09:03 AM