pike.git/
lib/
modules/
Sql.pmod/
pgsql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2012-04-04
2012-04-04 07:57:19 by Stephen R. van den Berg <srb@cuci.nl>
53b3799987a18cc3de45e0db35447db3228119b8 (
12
lines) (+
10
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
pgsql: Properly fix authentication errors.
1039:
{ close(); }
-
private
void
reconnect(void|int force)
+
private
int
reconnect(void|int force)
{ Thread.MutexKey connectmtxkey; if(_c) { reconnected++;
1085:
plugbuf[0]=_c.plugint32(len); _c.write(plugbuf); PD("%O\n",plugbuf);
-
_decodemsg(readyforquery);
+
{ mixed err=catch(
_decodemsg(readyforquery)
)
;
+
if(err)
+
if(force)
+
return 0;
+
else
+
throw(err);
+
}
PD("%O\n",_runtimeparameter); if(force) { lastmessage+=({sprintf("Reconnected to database %s",host_info())}); runcallback(backendpid,"_reconnect",""); }
-
+
return 1;
} //! @decl void reload()