Mercurial > hg > orthanc
diff Resources/Patches/civetweb-1.11.patch @ 3154:6e8822be2f08
Fix compatibility with DICOMweb plugin (allow multipart answers over HTTP Keep-Alive)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Jan 2019 12:09:04 +0100 |
parents | b7c52549595e |
children |
line wrap: on
line diff
--- a/Resources/Patches/civetweb-1.11.patch Sun Jan 20 14:02:49 2019 +0100 +++ b/Resources/Patches/civetweb-1.11.patch Mon Jan 21 12:09:04 2019 +0100 @@ -1,6 +1,20 @@ +diff -urEb civetweb-1.11.orig/include/civetweb.h civetweb-1.11/include/civetweb.h +--- civetweb-1.11.orig/include/civetweb.h 2019-01-17 21:09:41.844888908 +0100 ++++ civetweb-1.11/include/civetweb.h 2019-01-21 12:05:08.138998659 +0100 +@@ -1507,6 +1507,10 @@ + #endif + + ++// Added by SJ ++CIVETWEB_API void mg_disable_keep_alive(struct mg_connection *conn); ++ ++ + #ifdef __cplusplus + } + #endif /* __cplusplus */ diff -urEb civetweb-1.11.orig/src/civetweb.c civetweb-1.11/src/civetweb.c --- civetweb-1.11.orig/src/civetweb.c 2019-01-17 21:09:41.852888857 +0100 -+++ civetweb-1.11/src/civetweb.c 2019-01-17 21:23:54.273424124 +0100 ++++ civetweb-1.11/src/civetweb.c 2019-01-21 12:06:35.826868284 +0100 @@ -59,6 +59,9 @@ #if defined(__linux__) && !defined(_XOPEN_SOURCE) #define _XOPEN_SOURCE 600 /* For flockfile() on Linux */ @@ -68,3 +82,17 @@ conn->host = alloc_get_host(conn); if (!conn->host) { mg_snprintf(conn, +@@ -19857,4 +19882,13 @@ + } + + ++// Added by SJ ++void mg_disable_keep_alive(struct mg_connection *conn) ++{ ++ if (conn != NULL) { ++ conn->must_close = 1; ++ } ++} ++ ++ + /* End of civetweb.c */