Skip to content
Snippets Groups Projects
Commit 966ee819 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Add diagnostics.

parent 4f24ecd6
Branches
Tags
No related merge requests found
......@@ -494,7 +494,10 @@ outer:
}
final void connectloop(proxy pgsqlsess, int nossl) {
mixed err = catch {
#ifdef PG_DEBUG
mixed err =
#endif
catch {
for (; ; clear()) {
socket->connect(pgsqlsess. host, pgsqlsess. port);
#if constant(SSL.File)
......@@ -540,6 +543,7 @@ outer:
Thread.Thread(pgsqlsess->processloop, this);
return;
};
PD("Connect error %s\n", describe_backtrace(err));
catch(destruct(pgsqlsess->waitforauthready));
destruct(this);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment