Re: libpq SSL with non-blocking sockets
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Martin Pihlak <martin.pihlak@gmail.com>
Cc: Steve Singer <ssinger_pg@sympatico.ca>, Robert Haas <robertmhaas@gmail.com>, PG Hackers <pgsql-hackers@postgresql.org>
Date: 2011-07-24T20:33:40Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Improve libpq's error reporting for SSL failures.
- fee476da952a 9.2.0 cited
-
Use OpenSSL's SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag.
- d0c23026b249 9.2.0 cited
Martin Pihlak <martin.pihlak@gmail.com> writes: > If possible I would like the fix to be backported as well. This is > quite a nasty bug and difficult to track down. Especially as the > actual SSL error messages are masked by the "server closed the > connection unexpectedly" message. I've applied the simplified fix (just set SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER) as well as a patch to improve the error reporting situation. regards, tom lane