<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I'd see, but it's VTK code, I'll have to change the vtkProcessModuleConnectionManager::OpenConnection(<br>&nbsp; const char* hostname, int port) and I don't wan this ...<br><br>Thanks for your response ...<br><br><hr size="2" width="100%"><blockquote><blockquote><b>Wertz Gil</b><br></blockquote><i>gilwertz@hotmail.com</i><br></blockquote><hr size="2" width="100%"><br><br><br><br>&gt; Date: Wed, 13 Apr 2011 09:10:17 -0400<br>&gt; Subject: Re: [Paraview] change server timeout and hide "Output Messages"<br>&gt; From: utkarsh.ayachit@kitware.com<br>&gt; To: gilwertz@hotmail.com<br>&gt; CC: paraview@paraview.org<br>&gt; <br>&gt; That's by design and currently there's no way of changing it besides<br>&gt; changing the code. Feel free to add a feature request to the bug<br>&gt; tracker and we can address it in future releases.<br>&gt; <br>&gt; <br>&gt; <br>&gt; On Wed, Apr 13, 2011 at 2:07 AM, Gil Wertz &lt;gilwertz@hotmail.com&gt; wrote:<br>&gt; &gt; Little UP<br>&gt; &gt;<br>&gt; &gt; When creating the pqServer, if it cannot connect directly to the server it<br>&gt; &gt; wait for 60s, I wan to set the time out to 1s.<br>&gt; &gt;<br>&gt; &gt; the builder line :<br>&gt; &gt; m_server = m_object_builder-&gt;createServer(pqServerResource(host)); //here<br>&gt; &gt; timeout of 60s if no server<br>&gt; &gt;<br>&gt; &gt; Thanks<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt;<br>&gt; &gt; Wertz Gil<br>&gt; &gt;<br>&gt; &gt; gilwertz@hotmail.com<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; From: gilwertz@hotmail.com<br>&gt; &gt; To: paraview@paraview.org<br>&gt; &gt; Date: Mon, 4 Apr 2011 15:13:33 +0200<br>&gt; &gt; Subject: [Paraview] change server timeout and hide "Output Messages"<br>&gt; &gt;<br>&gt; &gt; When I try to connect my client to a pvserver and this one is not launched I<br>&gt; &gt; have this message :<br>&gt; &gt;<br>&gt; &gt; Warning: In<br>&gt; &gt; /data/wertz/paraview-source/Servers/Common/vtkProcessModuleConnectionManager.cxx,<br>&gt; &gt; line 299<br>&gt; &gt;<br>&gt; &gt; vtkProcessModuleConnectionManager (0x2a84d10): Connect failed. Retrying for<br>&gt; &gt; 53.8997 more seconds.<br>&gt; &gt;<br>&gt; &gt; How do I set timeout to 1 second ?<br>&gt; &gt; How do I catch those warning without showing "Output Messages" window and<br>&gt; &gt; from which element/class/manager does it depend ?<br>&gt; &gt;<br>&gt; &gt; When I launch pvserver and connect on it with a client, when I try with a<br>&gt; &gt; second one I get timeout (because pvserver is not multi-client ), how do I<br>&gt; &gt; get if the server is not launched or if a client is already connected ?<br>&gt; &gt;<br>&gt; &gt; Thanks.<br>&gt; &gt;<br>&gt; &gt; Code :<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QString host = "cs://";<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host += given_host;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host += ":";<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host += port;<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(m_server)<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //if any remote or builtin server, delete them to free<br>&gt; &gt; ressources<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_object_builder-&gt;removeServer(m_server);<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //create new remote server<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_server =<br>&gt; &gt; m_object_builder-&gt;createServer(pqServerResource(host)); //here timeout of<br>&gt; &gt; 60s blocking thread<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //if the server is remote then :<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(m_server &amp;&amp; m_server-&gt;isRemote()){<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>&gt; &gt; ________________________________<br>&gt; &gt;<br>&gt; &gt; Wertz Gil<br>&gt; &gt;<br>&gt; &gt; gilwertz@hotmail.com<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________ Powered by www.kitware.com<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html Please keep messages<br>&gt; &gt; on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; &gt; http://paraview.org/Wiki/ParaView<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt; &gt;<br>&gt; &gt;<br>                                               </body>
</html>