repositories
/
deb_shairplay.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disconnect the HTTP connection on unrecoverable error
[deb_shairplay.git]
/
src
/
lib
/
httpd.c
diff --git
a/src/lib/httpd.c
b/src/lib/httpd.c
index 757f05064ae49b9cb14b9b95cbc3c2e86487d7c0..1d9e7e2eb454334efec4f6e7ba106a7f9c9104a7 100644
(file)
--- a/
src/lib/httpd.c
+++ b/
src/lib/httpd.c
@@
-304,6
+304,11
@@
httpd_thread(void *arg)
}
written += ret;
}
}
written += ret;
}
+
+ if (http_response_get_disconnect(response)) {
+ logger_log(httpd->logger, LOGGER_INFO, "Disconnecting on software request");
+ httpd_remove_connection(httpd, connection);
+ }
} else {
logger_log(httpd->logger, LOGGER_INFO, "Didn't get response");
}
} else {
logger_log(httpd->logger, LOGGER_INFO, "Didn't get response");
}