aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-08-21 03:39:39 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-08-21 03:39:39 +0200
commitde3da6bf87a579a344b0581c6f2ce6a40166b432 (patch)
tree3526d8b5d373e035268a6c5002fd343d0a971453 /networking/wget.c
parent7b25b1c5b2794a499c8ae99db75830a6d564561e (diff)
downloadbusybox-de3da6bf87a579a344b0581c6f2ce6a40166b432.tar.gz
wget/ssl_helper: update to wolfssl-3.9.8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 653d8076f..7a4650585 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -1091,6 +1091,12 @@ static void download_one_url(const char *url)
}
fflush(sfp);
+ /* If we use SSL helper, keeping our end of the socket open for writing
+ * makes our end (i.e. the same fd!) readable (EAGAIN instead of EOF)
+ * even after child closes its copy of the fd.
+ * This helps:
+ */
+ shutdown(fileno(sfp), SHUT_WR);
/*
* Retrieve HTTP response line and check for "200" status code.