diff options
author | Denys Vlasenko | 2016-08-21 03:39:39 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-08-21 03:39:39 +0200 |
commit | de3da6bf87a579a344b0581c6f2ce6a40166b432 (patch) | |
tree | 3526d8b5d373e035268a6c5002fd343d0a971453 /networking/wget.c | |
parent | 7b25b1c5b2794a499c8ae99db75830a6d564561e (diff) | |
download | busybox-de3da6bf87a579a344b0581c6f2ce6a40166b432.zip busybox-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c index 653d807..7a46505 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. |