changeset 1524:19c67fd03275

Early abort instead of close on HTTP connections - from Jani Monoses
author gthomas
date Sat, 28 Feb 2004 16:51:08 +0000
parents 2e1b9250937f
children 1ea738d9701c
files packages/redboot/current/ChangeLog packages/redboot/current/src/net/http_client.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-27  Jani Monoses <jani@iv.ro>
+
+	* src/net/http_client.c: Close connection with abort instead of
+	friendly close since for ELF files we don't read the whole content
+	but end the connection when the runnable parts are in. The server
+	interprets close as it has nothing more to receive, but it still wants
+	to send the rest of the file and does that until it times out.
+	
 2004-02-26  Jani Monoses <jani@iv.ro>
 
 	* src/load.c:
--- a/packages/redboot/current/src/net/http_client.c
+++ b/packages/redboot/current/src/net/http_client.c
@@ -105,7 +105,7 @@ http_stream_close(int *err)
     struct _stream *s = &http_stream;
 
     if (s->open) {
-        __tcp_close(&s->sock);
+        __tcp_abort(&s->sock,1);
         s->open = false;    
     }
 }