repositories
/
deb_shairplay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9b3c3
)
Close server sockets on shutdown, thanks to Memphiz for pointing this out.
author
Juho Vähä-Herttua
<juhovh@iki.fi>
Sun, 25 Nov 2012 16:58:14 +0000
(18:58 +0200)
committer
Juho Vähä-Herttua
<juhovh@iki.fi>
Sun, 25 Nov 2012 16:58:14 +0000
(18:58 +0200)
src/lib/httpd.c
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/httpd.c
b/src/lib/httpd.c
index 88971faa5f57451b22d58a1959da108bd9229e68..dfd3d6b6a2a167587ef02e1d77e8cd23b16d695b 100644
(file)
--- a/
src/lib/httpd.c
+++ b/
src/lib/httpd.c
@@
-326,6
+326,16
@@
httpd_thread(void *arg)
httpd_remove_connection(httpd, connection);
}
+ /* Close server sockets since they are not used any more */
+ if (httpd->server_fd4 != -1) {
+ closesocket(httpd->server_fd4);
+ httpd->server_fd4 = -1;
+ }
+ if (httpd->server_fd6 != -1) {
+ closesocket(httpd->server_fd6);
+ httpd->server_fd6 = -1;
+ }
+
logger_log(httpd->logger, LOGGER_INFO, "Exiting HTTP thread");
return 0;