comparison OrthancFramework/Sources/HttpServer/HttpServer.cpp @ 4616:57b1a36645ae

upgrade to civetweb 1.14
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 12:08:20 +0200
parents f20a7655fb1c
children a6b7c29f5118 7053502fbf97
comparison
equal deleted inserted replaced
4610:8661811abca3 4616:57b1a36645ae
119 throw OrthancException(ErrorCode_NotImplemented, 119 throw OrthancException(ErrorCode_NotImplemented,
120 "Only available if using CivetWeb"); 120 "Only available if using CivetWeb");
121 121
122 #elif ORTHANC_ENABLE_CIVETWEB == 1 122 #elif ORTHANC_ENABLE_CIVETWEB == 1
123 # if CIVETWEB_HAS_DISABLE_KEEP_ALIVE == 1 123 # if CIVETWEB_HAS_DISABLE_KEEP_ALIVE == 1
124 # if CIVETWEB_VERSION_MAJOR == 1 && CIVETWEB_VERSION_MINOR <= 13 // From "civetweb-1.13.patch"
124 mg_disable_keep_alive(connection_); 125 mg_disable_keep_alive(connection_);
126 # else
127 /**
128 * Function "mg_disable_keep_alive()" contributed by Sebastien
129 * Jodogne was renamed as "mg_disable_connection_keep_alive()"
130 * in the official CivetWeb repository:
131 * https://github.com/civetweb/civetweb/commit/78d45f4c4b0ab821f4f259b21ad3783f6d6c556a
132 **/
133 mg_disable_connection_keep_alive(connection_);
134 # endif
125 # else 135 # else
126 # if defined(__GNUC__) || defined(__clang__) 136 # if defined(__GNUC__) || defined(__clang__)
127 # warning The function "mg_disable_keep_alive()" is not available, DICOMweb might run slowly 137 # warning The function "mg_disable_keep_alive()" is not available, DICOMweb might run slowly
128 # endif 138 # endif
129 throw OrthancException(ErrorCode_NotImplemented, 139 throw OrthancException(ErrorCode_NotImplemented,