From de3da6bf87a579a344b0581c6f2ce6a40166b432 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 21 Aug 2016 03:39:39 +0200 Subject: wget/ssl_helper: update to wolfssl-3.9.8 Signed-off-by: Denys Vlasenko --- networking/wget.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'networking/wget.c') 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. -- cgit v1.2.3