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:
parent
cee95e0e79
commit
31d20e644c
@ -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>
|
2002-01-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* headers.c (header_get): Strip trailing whitespace from the
|
* headers.c (header_get): Strip trailing whitespace from the
|
||||||
|
@ -221,9 +221,8 @@ ssl_iread (SSL *con, char *buf, int len)
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SELECT
|
#ifdef HAVE_SELECT
|
||||||
if (opt.timeout)
|
if (opt.timeout && !SSL_pending (con))
|
||||||
{
|
{
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
res = select_fd (fd, opt.timeout, 0);
|
res = select_fd (fd, opt.timeout, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user