34 :
TXSocket(0,
'i',psid,capver,0,-1,handler)
41 if (!(
fConn->IsValid())) {
42 Error(
"TXUnixSocket",
"severe error occurred while opening a connection"
43 " to server [%s]",
fUrl.Data());
68 Info(
"Reconnect",
"%p: %p: %d: trying to reconnect on %s",
this,
72 Int_t tryreconnect =
gEnv->GetValue(
"TXSocket.Reconnect", 0);
74 if (tryreconnect == 0)
75 Info(
"Reconnect",
"%p: reconnection attempts explicitly disabled!",
this);
77 Info(
"Reconnect",
"%p: server does not support reconnections (protocol: %d < 1005)",
96 Info(
"Reconnect",
"%p: %p: attempt %s",
this,
fConn,
97 ((
fConn &&
fConn->IsValid()) ?
"succeeded!" :
"failed"));
101 return ((
fConn &&
fConn->IsValid()) ? 0 : -1);
R__EXTERN TSystem * gSystem
#define XrdSysMutexHelper
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Handler of asynchronous events for XProofD sockets.
friend class TXUnixSocket
TXSocket(const char *url, Char_t mode='M', Int_t psid=-1, Char_t ver=-1, const char *logbuf=0, Int_t loglevel=-1, TXHandler *handler=0)
Constructor Open the connection to a remote XrdProofd instance and start a PROOF session.
Implementation of TXSocket using PF_UNIX sockets.
Int_t Reconnect()
Try reconnection after failure.
static void GetRetryParam(int &maxtry, int &timewait)
Retrieve current values of the retry control parameters, numer of retries and wait time between attem...
static void SetRetryParam(int maxtry=5, int timewait=2)
Change values of the retry control parameters, numer of retries and wait time between attempts (in se...