diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-08-21 03:39:39 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-08-21 03:39:39 +0200 |
commit | de3da6bf87a579a344b0581c6f2ce6a40166b432 (patch) | |
tree | 3526d8b5d373e035268a6c5002fd343d0a971453 /networking/wget.c | |
parent | 7b25b1c5b2794a499c8ae99db75830a6d564561e (diff) | |
download | busybox-w32-de3da6bf87a579a344b0581c6f2ce6a40166b432.tar.gz busybox-w32-de3da6bf87a579a344b0581c6f2ce6a40166b432.tar.bz2 busybox-w32-de3da6bf87a579a344b0581c6f2ce6a40166b432.zip |
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 653d8076f..7a4650585 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -1091,6 +1091,12 @@ static void download_one_url(const char *url) | |||
1091 | } | 1091 | } |
1092 | 1092 | ||
1093 | fflush(sfp); | 1093 | fflush(sfp); |
1094 | /* If we use SSL helper, keeping our end of the socket open for writing | ||
1095 | * makes our end (i.e. the same fd!) readable (EAGAIN instead of EOF) | ||
1096 | * even after child closes its copy of the fd. | ||
1097 | * This helps: | ||
1098 | */ | ||
1099 | shutdown(fileno(sfp), SHUT_WR); | ||
1094 | 1100 | ||
1095 | /* | 1101 | /* |
1096 | * Retrieve HTTP response line and check for "200" status code. | 1102 | * Retrieve HTTP response line and check for "200" status code. |