Branch: Tag:

2010-03-23

2010-03-23 18:04:19 by Stephen R. van den Berg <srb@cuci.nl>

Do not reconnect on authentication failures.

Rev: lib/modules/Sql.pmod/pgsql.pike:1.77

979:    }    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);