From: hniksic Date: Tue, 15 Jan 2002 15:24:19 +0000 (-0800) Subject: [svn] select the file descriptor only if no data is pending in SSL buffers. X-Git-Tag: v1.13~1853 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=31d20e644c717d6edc7cd13d39659483e83f4bee [svn] select the file descriptor only if no data is pending in SSL buffers. Submitted by tony@bluetail.com. Published in . --- 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);