pgpool2.git / summary / log / commit / refs
commit e0f373e2957de55a370cbcd4be28906fcb78da5a
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Thu Apr 05 02:36:53 2012 +0000
Fix pool_ssl_read() to deal with large data reading.
It seems we should retry if SSL_read() returns SSL_ERROR_WANT_READ.
Original complain is here:
http://www.pgpool.net/pipermail/pgpool-general/2012-March/000299.html
Back patched to 3.1-STABLE and 3.0-STABLE as well.
pool_ssl.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/pool_ssl.c b/pool_ssl.c
index a05641cd5..b3e2d508a 100644
--- a/pool_ssl.c
+++ b/pool_ssl.c
@@ -5,7 +5,7 @@
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2010 PgPool Global Development Group
+ * Copyright (c) 2003-2012 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -139,8 +139,6 @@ int pool_ssl_read(POOL_CONNECTION *cp, void *buf, int size) {
case SSL_ERROR_NONE:
break;
case SSL_ERROR_WANT_READ:
- n = 0;
- break;
case SSL_ERROR_WANT_WRITE:
/*
[parent: 3663bcb7232b]