Patch level :10.0 patch 802

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

View Issue Details [ Vai alle note ] [ Invia un memorandum ]  [ Storia dell'anomalia ] [ Stampa ]
ID Progetto Categoria Visibilità Inserita il Ultimo aggiornamento
0001686 Campo Servers pubblico 2010-09-01 18:09 2010-09-07 18:05

Segnalata da ilaria
Assegnata a alex
Priorità alta Severità maggiore Riproducibilità sempre
Stato assegnata Motivazione aperta
Piattaforma  S.O.  Versione
Versione del prodotto 10.0
Assegnata alla versione  Risolta nella versione

Riassunto 0001686: BUSTAPLAST - problema gestione server di chiavi
Descrizione da chiamata intercorsa oggi tra Roberta e Corradi/Torre, siamo venuti a sapere che per una modifica fatta alla gestione del server di chiavi per il cliente Diana 2000 non sono più visibili i numeri degli utenti collegati, questo modo di operare non permette di capire a chi si collega se in effetti c'è un problema di sovrautilizzo delle licenze o se è la rete ad avere problemi ed in effetti ci sono utenti 'appesi'.


git-svn-id: svn://10.65.10.50/branches/R_10_00@20845 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2010-09-10 15:25:18 +00:00
parent c873b2eca7
commit d3de1af847

View File

@ -78,12 +78,13 @@ bool TLurchServer::PingProcess(const wxString& strApp)
const unsigned short nPort = GetConfigInt("Port", 0, strApp);
if (nPort > 0)
{
int nTimeOut = m_PingTimer.GetInterval()/4; // msec
if (nTimeOut < 250) nTimeOut = 250; else
if (nTimeOut > 2000) nTimeOut = 2000;
int nTimeOut = m_PingTimer.GetInterval()/3; // msec
if (nTimeOut < 1000) nTimeOut = 1000; else
if (nTimeOut > 5000) nTimeOut = 5000;
wxIPV4address ipAddress;
ipAddress.LocalHost();
// ipAddress.AnyAddress(); // Vadim Zetim lo consiglia ma non sempre funziona
ipAddress.LocalHost(); // Vadim Zetim lo sconsiglia ma pare funzionare
ipAddress.Service(nPort);
wxSocketClient sSock(wxSOCKET_NOWAIT);
sSock.Connect(ipAddress, false);
@ -101,6 +102,18 @@ bool TLurchServer::PingProcess(const wxString& strApp)
bPinged = wxStrncmp(buffer, "PONG", 4) == 0;
sSock.Discard(); // Tralascia ulteriori dati in arrivo
}
else
{
wxString strMsg;
strMsg << _("Ping Host - ") << ipAddress.Hostname() << ":" << nPort << _(" - Write Error ") << sSock.LastError() ;
WriteLog(strMsg);
}
}
else
{
wxString strMsg;
strMsg << _("Ping Host - ") << ipAddress.Hostname() << ":" << nPort << _(" - Connection Error ") << sSock.LastError() ;
WriteLog(strMsg);
}
/*
wxDatagramSocket dSock(ipAddress, wxSOCKET_NOWAIT);