BOINC Manager: connecting to other hosts is troublesome
Rom Walton
romw at romwnet.org
Thu Apr 6 19:02:22 UTC 2006
I've checked in a fix for this based off of your patch.
----- Rom
> -----Original Message-----
> From: Frank S. Thomas [mailto:frank at thomas-alfeld.de]
> Sent: Wednesday, April 05, 2006 9:25 AM
> To: boinc_dev at ssl.berkeley.edu; Rom Walton; pkg-boinc-
> devel at lists.alioth.debian.org
> Subject: BOINC Manager: connecting to other hosts is troublesome
>
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2355 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-boinc-devel/attachments/20060406/1188162c/smime.bin
More information about the pkg-boinc-devel
mailing list