Description: Introduce function for performance of keep-alive
Origin: https://hg.orthanc-server.com/orthanc/file/Orthanc-1.7.4/OrthancFramework/Resources/Patches/civetweb-1.12.patch
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: civetweb-1.12/include/civetweb.h
===================================================================
--- civetweb-1.12.orig/include/civetweb.h
+++ civetweb-1.12/include/civetweb.h
@@ -1614,6 +1614,9 @@ CIVETWEB_API int mg_start_domain2(struct
                                   struct mg_error_data *error);
 #endif
 
+// Added by SJ
+CIVETWEB_API void mg_disable_keep_alive(struct mg_connection *conn);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
Index: civetweb-1.12/src/civetweb.c
===================================================================
--- civetweb-1.12.orig/src/civetweb.c
+++ civetweb-1.12/src/civetweb.c
@@ -20704,5 +20704,12 @@ mg_exit_library(void)
 	return 1;
 }
 
+// Added by SJ
+void mg_disable_keep_alive(struct mg_connection *conn)
+{
+  if (conn != NULL) {
+    conn->must_close = 1;
+  }
+}
 
 /* End of civetweb.c */
