pike.git / lib / modules / Sql.pmod / pgsql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:972:    break;    }    default:    if(msgtype!=-1)    { PD("Unknown message received %c\n",msgtype);    msglen-=4;PD("%O\n",_c.getstring(msglen));msglen=0;    errtype=protocolunsupported;    }    else    { array(string) msg=lastmessage; -  phasedreconnect();msg+=lastmessage; +  if(_mstate!=unauthenticated) +  phasedreconnect(),msg+=lastmessage;    string s=sizeof(msg)?a2nls(msg):"";    ERROR("%sConnection lost to database %s@%s:%d/%s %d\n",    s,user,host,port,database,backendpid);    }    break;    }    if(msglen)    errtype=protocolerror;    switch(errtype)    { case protocolunsupported: