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 malin
Recipients malin, ned.deily, paul.moore, skn78, steve.dower, thatiparthy, tim.golden, tjguk, zach.ware
Date 2018-02-01.02:47:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517453275.77.0.467229070634.issue32394@psf.upfronthosting.co.za>
In-reply-to
Content
Base on Kamil's code, a little improvements.


if hasattr(sys, 'getwindowsversion'):
    WIN_MAJOR, _, WIN_BUILD, *_ = sys.getwindowsversion()
    if WIN_MAJOR == 10:
        if WIN_BUILD >= 15063:    # Windows 10 1703
            pass
        elif WIN_BUILD >= 14393:  # Windows 10 1607
            del socket.TCP_KEEPCNT
        else:
            del socket.TCP_KEEPCNT
            del socket.TCP_FASTOPEN
    elif WIN_MAJOR < 10:
        del socket.TCP_KEEPCNT
        del socket.TCP_FASTOPEN


Windows 10 versions:
https://technet.microsoft.com/en-us/windows/release-info.aspx
History
Date User Action Args
2018-02-01 02:47:55malinsetrecipients: + malin, paul.moore, tim.golden, ned.deily, zach.ware, steve.dower, thatiparthy, tjguk, skn78
2018-02-01 02:47:55malinsetmessageid: <1517453275.77.0.467229070634.issue32394@psf.upfronthosting.co.za>
2018-02-01 02:47:55malinlinkissue32394 messages
2018-02-01 02:47:55malincreate