1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] select the file descriptor only if no data is pending in SSL buffers.

Submitted by tony@bluetail.com.
Published in <sxslmezocyp.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2002-01-15 07:24:19 -08:00
parent cee95e0e79
commit 31d20e644c
2 changed files with 7 additions and 2 deletions

View 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

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