# HG changeset patch # User Sebastien Jodogne # Date 1754901741 -7200 # Node ID 339c4ba0a3a39337d059b2158266be9cc324d7d5 # Parent ac34dce1af7d05049f3c8114541767be604f5cf7 fix for msvc diff -r ac34dce1af7d -r 339c4ba0a3a3 OrthancFramework/Sources/HttpServer/HttpServer.cpp --- a/OrthancFramework/Sources/HttpServer/HttpServer.cpp Mon Aug 11 10:22:19 2025 +0200 +++ b/OrthancFramework/Sources/HttpServer/HttpServer.cpp Mon Aug 11 10:42:21 2025 +0200 @@ -1676,7 +1676,8 @@ realm_(ORTHANC_REALM), threadsCount_(50), // Default value in mongoose/civetweb tcpNoDelay_(true), - requestTimeout_(30) // Default value in mongoose/civetweb (30 seconds) + requestTimeout_(30), // Default value in mongoose/civetweb (30 seconds) + threadCounter_(0) { #if ORTHANC_ENABLE_MONGOOSE == 1 CLOG(INFO, HTTP) << "This Orthanc server uses Mongoose as its embedded HTTP server"; diff -r ac34dce1af7d -r 339c4ba0a3a3 OrthancFramework/Sources/HttpServer/HttpServer.h --- a/OrthancFramework/Sources/HttpServer/HttpServer.h Mon Aug 11 10:22:19 2025 +0200 +++ b/OrthancFramework/Sources/HttpServer/HttpServer.h Mon Aug 11 10:42:21 2025 +0200 @@ -118,7 +118,7 @@ std::unique_ptr availableHttpThreadsMetrics_; // New in Orthanc 1.12.9 boost::mutex threadCounterMutex_; // New in Orthanc 1.12.9 - uint16_t threadCounter_ = 0; // Introduced as a global, static variable in Orthanc 1.12.2 + uint16_t threadCounter_; // Introduced as a global, static variable in Orthanc 1.12.2 #if ORTHANC_ENABLE_PUGIXML == 1 WebDavBuckets webDavBuckets_;