Skip to content

Commit b6e3738

Browse files
kvapkelvich
authored andcommitted
Add actual socket closing into close_socket function.
1 parent 5209780 commit b6e3738

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/arbiter/sockhub/sockhub.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ static void close_socket(Shub* shub, int fd)
150150
#else
151151
FD_CLR(fd, &shub->inset);
152152
#endif
153+
close(fd);
153154
}
154155

155156
int ShubReadSocketEx(int sd, void* buf, int min_size, int max_size)
@@ -252,6 +253,7 @@ static void reconnect(Shub* shub)
252253
return;
253254
}
254255
}
256+
close(shub->output);
255257
}
256258
}
257259

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy