[pkg-boinc-devel] BOINC Manager: connecting to other hosts is troublesome

Frank S. Thomas frank at thomas-alfeld.de
Wed Apr 5 16:25:00 UTC 2006


Hi,

After BOINC Manager starts, it tries to connect to the client on localhost. If 
there is no running client on localhost, BOINC Manager times out after one 
minute and says that the connection failed. This is okay so far, but if you 
select another host to connect to while the BOINC Manager is trying to 
connect to localhost, it waits until the connection attempt to localhost 
times out. I would expect that BOINC Manager stops trying to connect to a 
host, after the user selected another host with BOINC Manager's "Select 
Computer" dialog, otherwise you only can connect to other hosts one minute 
after the BOINC Manager has started.

After a quick look at the code, I came up with this patch:

--- boinc-5.3.31.orig/clientgui/MainFrame.cpp
+++ boinc-5.3.31/clientgui/MainFrame.cpp
@@ -1034,6 +1034,8 @@
 
     lAnswer = pDlg->ShowModal();
     if (wxID_OK == lAnswer) {
+    
+        pDoc->m_pNetworkConnection->SetStateDisconnected();
 
         // Make a null hostname be the same thing as localhost
         if (wxEmptyString == pDlg->m_ComputerNameCtrl->GetValue()) {
--- boinc-5.3.31.orig/clientgui/MainDocument.cpp
+++ boinc-5.3.31/clientgui/MainDocument.cpp
@@ -252,6 +252,7 @@
     if (pFrame && !m_bFrameShutdownDetected) {
         wxASSERT(wxDynamicCast(pFrame, CMainFrame));
         m_bConnected = false;
+        m_bReconnecting = false;
     }
 }
 
I'm not sure if this is the right thing to do, but it seems to work here. 
Could you please have a look at this issue.

Thanks,
Frank

-- 
Es irrt der Mensch, solang' er strebt.



More information about the pkg-boinc-devel mailing list