[Paraview-developers] pvserver with multiple clients

Grégory Zaccaro gregory.zaccaro at gmail.com
Wed Jun 28 18:52:31 EDT 2017


I'm trying to run a pvserver(Paraview 5.3) with multiple clients.
I have a little problem when running the server.

Here is how I launch locally all the processes on a .bat file :
    start mpiexec.exe -np 1 pvserver.exe --server-port=11111
    start mpiexec.exe -np 1 pvserver.exe --server-port=11112
    start pvbatch.exe script_box.py DESKTOP-HAFBULV 11111
    start pvbatch.exe script_box.py DESKTOP-HAFBULV 11112

With "script_box.py" doing the connection and some stuff :
    from paraview.simple import *
    import sys

    server_name = sys.argv[1]
    server_port = int(sys.argv[2])

    connection = servermanager.Connect(server_name, server_port)

    servermanager.LoadPlugin('...')

    # create a new 'Box'
    # create a new 'Triangulate'
    # create a new 'Clean'
    ...

Whenever a client gets connected, the script is executed but the server
exits immediately after that,
the problem is that all the others clients lose connections and the server
disconnect.

I don't call servermanager.Disconnect() and I tried to run pvserver with
--multi-clients but it has no effect,

Is there is any specific way to manage multiple connections with a pvserver
?

Any help would be appreciated !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170628/41be4246/attachment.html>


More information about the Paraview-developers mailing list