comparison Resources/CMake/DcmtkConfigurationStatic-3.6.2.cmake @ 3316:4b1017928fc4

Fix performance issue in DICOM protocol by disabling Nagle's algorithm
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 28 Feb 2019 18:21:28 +0100
parents dd10fe965870
children 0301f59450fe
comparison
equal deleted inserted replaced
3315:8bf33fa68435 3316:4b1017928fc4
177 177
178 178
179 #set_source_files_properties(${DCMTK_SOURCES} 179 #set_source_files_properties(${DCMTK_SOURCES}
180 # PROPERTIES COMPILE_DEFINITIONS 180 # PROPERTIES COMPILE_DEFINITIONS
181 # "PACKAGE_VERSION=\"${DCMTK_PACKAGE_VERSION}\";PACKAGE_VERSION_NUMBER=\"${DCMTK_VERSION_NUMBER}\"") 181 # "PACKAGE_VERSION=\"${DCMTK_PACKAGE_VERSION}\";PACKAGE_VERSION_NUMBER=\"${DCMTK_VERSION_NUMBER}\"")
182
183
184 # Starting with DCMTK 3.6.2, the Nagle algorithm is not disabled by
185 # default since this does not seem to be appropriate (anymore) for
186 # most modern operating systems. In order to change this default, the
187 # environment variable NO_TCPDELAY can be set to "1" (see envvars.txt
188 # for details). Alternatively, the macro DISABLE_NAGLE_ALGORITHM can
189 # be defined to change this setting at compilation time (see
190 # macros.txt for details).
191 # https://forum.dcmtk.org/viewtopic.php?t=4632
192 add_definitions(
193 -DDISABLE_NAGLE_ALGORITHM=1
194 )