Patch level : 10.0
Files correlati : ba0.exe Ricompilazione Demo : [ ] Commento : Segnalazione 1686 Problemi di scollegamento del menu principale da Authoriz git-svn-id: svn://10.65.10.50/branches/R_10_00@20852 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
fa2d23ce2b
commit
1acd5d9d1f
@ -64,11 +64,21 @@ char* rpc_Request(const char* cmd, size_t& size, real& total)
|
||||
static TString _rpc_call(256);
|
||||
static TString _rpc_string;
|
||||
|
||||
static bool BoolCall()
|
||||
static bool BoolCall(int timeout = 0)
|
||||
{
|
||||
CHECK(_connection, "Server not connected");
|
||||
bool yes = false;
|
||||
bool ok = _client->RequestBool(_connection, _rpc_call, yes) != 0;
|
||||
bool ok = false;
|
||||
|
||||
if (timeout > 0)
|
||||
{
|
||||
const int to = rpc_Timeout(timeout);
|
||||
ok = _client->RequestBool(_connection, _rpc_call, yes);
|
||||
rpc_Timeout(to);
|
||||
}
|
||||
else
|
||||
ok = _client->RequestBool(_connection, _rpc_call, yes);
|
||||
|
||||
if (!ok)
|
||||
{
|
||||
#ifndef DBG
|
||||
@ -355,8 +365,9 @@ bool rpc_UserLogout(const char* appname)
|
||||
{
|
||||
const int session = xvt_sys_get_session_id();
|
||||
_rpc_call.format("UserLogout(%s, %d, %s)", (const char*)user(), session, appname);
|
||||
rpc_Call(_rpc_call);
|
||||
_client->RemoveConnection(_connection);
|
||||
//rpc_Call(_rpc_call); // Richiede il logout senza attendere la risposta
|
||||
BoolCall(3); // Aspetta un po' in modo da permettere al server di esaminare la richiesta
|
||||
_client->RemoveConnection(_connection); // Chiude la connessione
|
||||
_connection = 0;
|
||||
}
|
||||
|
||||
|
@ -874,7 +874,7 @@ bool TSocketClient::HttpGetFile(CONNID id, const char* remote, const char* local
|
||||
ofstream outfile(local, ios::out | ios::binary);
|
||||
if (outfile.good())
|
||||
{
|
||||
TString buf(16*1024);
|
||||
TString buf(24*1024);
|
||||
|
||||
TToken_string strpi(256, '\n');
|
||||
strpi << remote << " - " << bytes2str(size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user