tClose socket after information is received - sacc - sacc (saccomys): simple gopher client. (DIR) Log (DIR) Files (DIR) Refs (DIR) LICENSE --- (DIR) commit e1950fa3b12946f1f520745102442de01b405d5a (DIR) parent d1db3194cc1350795afe44cda9e73d916e74e71c (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 t@@ -353,6 +353,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);