changeset 4634:ed117ac44774

freeing http socket, close FD that's being connected
author corvid
date Sa, 09 Jul 2016 02:02:40 +0000
parents ff7b186fdf93
children 6562a0dbf236
files src/IO/http.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/IO/http.c	Fr Jul 08 01:19:56 2016 +0000
+++ b/src/IO/http.c	Sa Jul 09 02:02:40 2016 +0000
@@ -302,6 +302,7 @@
       if (S->flags & HTTP_SOCKET_IOWATCH_ACTIVE) {
          S->flags &= ~HTTP_SOCKET_IOWATCH_ACTIVE;
          a_IOwatch_remove_fd(S->SockFD, -1);
+         dClose(S->SockFD);
       }
       dStr_free(S->https_proxy_reply, 1);