Skip to content

TCP_QUICKACK is available on Windows, but is only implemented by the python runtime for Linux #123476

Description

@nkinnan

Bug report

Bug description:

import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_QUICKACK, 1)
sock.getsockopt(socket.IPPROTO_TCP, socket.TCP_QUICKACK)

On windows this throws AttributeError: module 'socket' has no attribute 'TCP_QUICKACK'

Support is for this setting is available on windows, it just isn't implemented in the python runtime. It's implemented for Linux and I believe for Mac as well, though I didn't check the latter.

I'm opening this mostly to track my PR as I already have the fix implemented.

CPython versions tested on:

3.12, CPython main branch

Operating systems tested on:

Linux, Windows

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Aug 30, 2024
  2. added a commit that references this issue on Sep 5, 2024
  3. vstinner commented on Sep 5, 2024

    @vstinner
    Member

    Implemented by b5aa271.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions