Larry Brigman wrote:
On 7/26/06, Paul ROBINS <[EMAIL PROTECTED]> wrote:

Hello,

I'm new here. Sorry if the answer to my questions exist somewhere in the
archives - I did search but couldn't find anything. Sorry this is a bit
long, I wanted to explain what I need as clearly as possible:

I have an intranet web server that allows our users to browse a
hierarchy of data files which represent graphs. On selecting a data file
the server runs a kind of cgi executable that transforms the file into a
graph image and serves it up in an html page. The executable is ours and
unfortunately cannot run without an X display to generate a pixmap,
which is where VNC comes in very handy :)

I'm currently just testing the whole thing using a single VNC server on
the webserver for all requests and it works - but what I want to avoid
is "graphical collisions" on the VNC server's display when making the
images, i.e. one users pixmap obscuring anothers. So ideally I'd like to
create a VNC server per user session. I'm using PHP sessions by the way
attribute session ids.

The problem I have is knowing when a particular VNC display is no longer
needed. I know when a user initially connects and requests an image so I
could at that point create a VNC server and register that display as
belonging to the session. The user would continue to generate images on
"his/her" server/display as long as their session was open. As I said
though I don't really know when the session ends so I'd end up with an
awful lot of inactive VNC servers running after a short time :(

I could use inetd to run VNC, but that would bring up a server per image
request, which seems like a lot of stopping/starting to me ;) and I
guess would be slower. (a user may look at many tens of graphs per session).

What I'd really like to do is have a users VNC server die quietly after
a defined period of inactivity but I can't find any option to do this. I
know this goes against the usual idea of keeping a VNC server alive but
for this kind of usage it would be a really handy!


Any tips would be really appreciated.


Option for Xvnc:
-IdleTimeout seconds


Thanks but that doesn't do it. As the man page says, the -IdleTimeout seconds option is the number of seconds after which an idle VNC connection will be dropped. As I said in my original post, I'm looking for a way to drop a VNC server after a period of inactivity, not a client connection. For info I'm not even using a vncviewer/client, just an X11 application that has it's -display set to a VNC server's screen.

I'm a bit surprised that there have been no other responses :( Xvnc initally seems very nice to use as a virtual display for running in batch or cgi X11 apps that need a display. It's a real shame that you can't control it a bit more :(

Thanks

Paul
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to