From 31d20e644c717d6edc7cd13d39659483e83f4bee Mon Sep 17 00:00:00 2001 From: hniksic Date: Tue, 15 Jan 2002 07:24:19 -0800 Subject: [PATCH] [svn] select the file descriptor only if no data is pending in SSL buffers. Submitted by tony@bluetail.com. Published in . --- src/ChangeLog | 6 ++++++ src/gen_sslfunc.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9bec4d66..ede9eae0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-01-15 Hrvoje Niksic + + * gen_sslfunc.c (ssl_iread): Call select on the file descriptor + only if no data is pending in SSL buffers. + From tony@bluetail.com. + 2002-01-14 Hrvoje Niksic * headers.c (header_get): Strip trailing whitespace from the diff --git a/src/gen_sslfunc.c b/src/gen_sslfunc.c index 1f97edcc..8af78895 100644 --- a/src/gen_sslfunc.c +++ b/src/gen_sslfunc.c @@ -221,9 +221,8 @@ ssl_iread (SSL *con, char *buf, int len) do { #ifdef HAVE_SELECT - if (opt.timeout) + if (opt.timeout && !SSL_pending (con)) { - do { res = select_fd (fd, opt.timeout, 0); -- 2.39.2