]> sjero.net Git - wget/commitdiff
[svn] select the file descriptor only if no data is pending in SSL buffers.
authorhniksic <devnull@localhost>
Tue, 15 Jan 2002 15:24:19 +0000 (07:24 -0800)
committerhniksic <devnull@localhost>
Tue, 15 Jan 2002 15:24:19 +0000 (07:24 -0800)
Submitted by tony@bluetail.com.
Published in <sxslmezocyp.fsf@florida.arsdigita.de>.

src/ChangeLog
src/gen_sslfunc.c

index 9bec4d66d336bd4be0035e947259ba3e865cb77d..ede9eae03e49a8dfa4bf47b2efe24a9d94db0156 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-15  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * 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  <hniksic@arsdigita.com>
 
        * headers.c (header_get): Strip trailing whitespace from the
index 1f97edcc38b315c083bb8fde959b7e450dee302f..8af78895c62a878d4b4676b86e721bcda7c23043 100644 (file)
@@ -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);