Dirk Reiners wrote:
>       Hi Patrick,
> 
> Patrick Hartling wrote:
>> Andreas Zieringer wrote:
>>> Hi Patrick,
>>>
>>> looks like a bug.
>> In OpenSG or in my code?
>>
>>> Running the cluster servers all the time is not a good 
>>> idea.
>> Why is that?
>>
>>> Better run a simple program (we use a minimal webserver service) 
>>> which starts the cluster server. On disconnection exit the cluster server.
>> I could do that, but I would like to understand why adding that complexity
>> is necessary first. Is it a resource usage issue, a design limitation of
>> OpenSG, or something else?
> 
> Getting RefCounting and full resource cleanup to work correctly in all cases 
> in 
> the cluster is not trivial, and depending on it (in addition to the OpenGL 
> driver being nice about cleaning up and not leaking anything anywhere) 
> doesn't 
> seem to be worth the effort compared to just restarting the servers after an 
> app 
> ends. Is it really a complication to start an auto-restart script instead of 
> just a server process?

I am not sure what you mean by "auto-restart script" in this context. As I
see it, I have two options:

   1. Use a single server-side process that shows and hides its graphics
      window when the client connects and disconnects respectively.
   2. Use two server-side process: an OpenSG cluster server process and
      another that fork(2)'s and kill(2)'s that process when a client
      connects and disconnects respectively.

Give that, it is a complication in the sense that it adds more code and more
places for things to go wrong. If my intended use of OpenSG is not going to
be supported, then that makes the decision to add that code clear.

 -Patrick


-- 
Patrick L. Hartling                    | VP Engineering, Infiscape Corp.
PGP: http://tinyurl.com/2msw3          | http://www.infiscape.com/

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to