diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-22 21:57:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-22 21:57:44 +0000 |
commit | b0a0a8061856a103b98bd356fff4a059e31fa41c (patch) | |
tree | f54b4d09d390edb2e7abf0d31565285023e03892 /src | |
parent | efbc85c209dd5c73532a398d0720d474712d5f79 (diff) | |
download | postgresql-b0a0a8061856a103b98bd356fff4a059e31fa41c.tar.gz postgresql-b0a0a8061856a103b98bd356fff4a059e31fa41c.zip |
Sigh, I'm an idiot ... SSL_ERROR_WANT_READ isn't an error condition
at all, it just means 'no data available yet'.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/fe-secure.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index 4d3ffcc5b8e..ec918a2ee98 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.15.2.6 2003/08/04 17:25:29 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.15.2.7 2003/08/22 21:57:44 tgl Exp $ * * NOTES * The client *requires* a valid server certificate. Since @@ -269,6 +269,9 @@ pqsecure_read(PGconn *conn, void *ptr, size_t len) case SSL_ERROR_NONE: break; case SSL_ERROR_WANT_READ: + /* WANT_READ simply means no data available */ + n = 0; + break; case SSL_ERROR_WANT_WRITE: /* XXX to support nonblock I/O, we should return 0 here */ goto rloop; |