This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skn78
Recipients malin, ned.deily, paul.moore, skn78, steve.dower, thatiparthy, tim.golden, tjguk, zach.ware
Date 2018-02-02.16:42:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517589778.96.0.467229070634.issue32394@psf.upfronthosting.co.za>
In-reply-to
Content
I am sorry, this is the right version
CHANGE:
#ifdef  TCP_KEEPCNT    
        PyModule_AddIntMacro(m, TCP_KEEPCNT);
#endif

TO:
#ifdef  TCP_KEEPCNT    
    #ifdef MS_WINDOWS
    #if defined(_MSC_VER) && _MSC_VER >= 1800
    //on Windows avaible only from Windows 10 1703 (Build:15063 )
     if (IsWindows10CreatorsOrGreater()) {
         PyModule_AddIntMacro(m, TCP_KEEPCNT);        
     }    
    #else
     PyModule_AddIntMacro(m, TCP_KEEPCNT); 
    #endif
#endif

AND CHANGE:
#ifdef  TCP_FASTOPEN
        PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif

TO:
#ifdef  TCP_FASTOPEN
    #ifdef MS_WINDOWS
    #if defined(_MSC_VER) && _MSC_VER >= 1800
    //on Windows avaible only from Windows 10 1607(Build: 14393)
     if (IsWindows10AnniversaryOrGreater()) {
         PyModule_AddIntMacro(m, TCP_FASTOPEN);
     }
    #else
     PyModule_AddIntMacro(m, TCP_FASTOPEN);
    #endif 
#endif
History
Date User Action Args
2018-02-02 16:42:59skn78setrecipients: + skn78, paul.moore, tim.golden, ned.deily, zach.ware, steve.dower, thatiparthy, malin, tjguk
2018-02-02 16:42:58skn78setmessageid: <1517589778.96.0.467229070634.issue32394@psf.upfronthosting.co.za>
2018-02-02 16:42:58skn78linkissue32394 messages
2018-02-02 16:42:58skn78create