HTTPing icon indicating copy to clipboard operation
HTTPing copied to clipboard

Define NO_TFO on macOS < 10.11

Open barracuda156 opened this issue 1 year ago • 5 comments

Closes: https://github.com/folkertvanheusden/HTTPing/issues/19

barracuda156 avatar Sep 26 '24 16:09 barracuda156

@folkertvanheusden Perhaps, I am just not really sure how to check for macOS version via CMakeLists.

barracuda156 avatar Sep 26 '24 19:09 barracuda156

I think it can be done via https://stackoverflow.com/questions/27660048/cmake-check-if-mac-os-x-use-apple-or-apple Don't have a mac so can't test it.

On Thu, Sep 26, 2024 at 9:13 PM Sergey Fedorov @.***> wrote:

@folkertvanheusden https://github.com/folkertvanheusden Perhaps, I am just not really sure how to check for macOS version via CMakeLists.

— Reply to this email directly, view it on GitHub https://github.com/folkertvanheusden/HTTPing/pull/22#issuecomment-2377738004, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUN5IW36ERW4UQQLBZIQ3HLZYRMGVAVCNFSM6AAAAABO5N47POVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXG4ZTQMBQGQ . You are receiving this because you were mentioned.Message ID: @.***>

folkertvanheusden avatar Sep 26 '24 19:09 folkertvanheusden

I think it can be done via https://stackoverflow.com/questions/27660048/cmake-check-if-mac-os-x-use-apple-or-apple Don't have a mac so can't test it. On Thu, Sep 26, 2024 at 9:13 PM Sergey Fedorov @.> wrote: @folkertvanheusden https://github.com/folkertvanheusden Perhaps, I am just not really sure how to check for macOS version via CMakeLists. — Reply to this email directly, view it on GitHub <#22 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUN5IW36ERW4UQQLBZIQ3HLZYRMGVAVCNFSM6AAAAABO5N47POVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXG4ZTQMBQGQ . You are receiving this because you were mentioned.Message ID: @.>

Yeah, but we do not want to disable it for all macOS altogether. Only for versions prior to 10.11.

barracuda156 avatar Sep 26 '24 19:09 barracuda156

There is an interesting discussion about TFO support in different distros/versions/archs: https://github.com/rust-lang/socket2/issues/49

yegorich avatar Feb 03 '25 10:02 yegorich

Checking symbols with CMake: https://cmake.org/cmake/help/latest/module/CheckSymbolExists.html

yegorich avatar Feb 03 '25 10:02 yegorich