We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5384647 commit 03da5ceCopy full SHA for 03da5ce
src/dlna/clients/DLNAControlPoint.h
@@ -221,6 +221,7 @@ class DLNAControlPoint : public IControlPoint {
221
222
void setTransports(IHttpRequest& http, IUDPService& udp) {
223
p_http = &http;
224
+ p_http->setConnection(DLNA_REQUEST_KEEP_ALIVE ? CON_KEEP_ALIVE : CON_CLOSE);
225
p_udp = &udp;
226
}
227
src/dlna_config.h
@@ -25,6 +25,11 @@
25
#define DLNA_HTTP_REQUEST_TIMEOUT_MS 6000
26
#endif
27
28
+/// Keep the session open for multiple requests
29
+#ifndef DLNA_REQUEST_KEEP_ALIVE
30
+#define DLNA_REQUEST_KEEP_ALIVE false
31
+#endif
32
+
33
/// Define XML parse buffer size
34
#ifndef XML_PARSER_BUFFER_SIZE
35
#define XML_PARSER_BUFFER_SIZE 512
0 commit comments