Close socket after information is received - sacc - sacc (saccomys): simple gopher client.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit bac69ffc9bd7be308a7c5817904b9228095500cf
 (DIR) parent a8445ba3cd5c5b00fd161f2a946badb0a2a8c19c
 (HTM) Author: Quentin Rameau <quinq@fifth.space>
       Date:   Fri, 23 Jun 2017 01:17:09 +0200
       
       Close socket after information is received
       
       Thanks Hiljto
       
       Diffstat:
         sacc.c                              |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/sacc.c b/sacc.c
       @@ -358,6 +358,7 @@ dig(Item *entry, Item *item)
                sock = connectto(item->host, item->port);
                sendselector(sock, item->selector);
                item->raw = getrawitem(sock);
       +        close(sock);
        
                if (!*item->raw) {    /* empty read */
                        free(item->raw);