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);