Skip to content

test_socket tests fail with kernel lacking support for IPPROTO_UDPLITE #149078

Description

@mcepl

Bug report

Bug description:

When running on the kernel without support for UDPLite, setup of tests (function clientSetUp) in test_socket fails:

self.cli = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE)

this command raises OSError.

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Complete build logs

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Apr 27, 2026
  2. added 4 commits that reference this issue on Apr 27, 2026
  3. neek78 commented on May 1, 2026

    @neek78
    Contributor

    Linux 7.0 appears to have removed UDPLITE all together -

    commit d6e0f04bf22d9b25b530c5e04f82664eac942719
    Merge: 8f921f610054 14ce9a47c5b7
    Author: Jakub Kicinski <kuba@kernel.org>
    Date:   Fri Mar 13 18:57:48 2026 -0700
    
        Merge branch 'udp-retire-udp-lite'
    

    So this is going to come up a lot more.

  4. mcepl commented on May 4, 2026

    @mcepl
    ContributorAuthor

    Linux 7.0 appears to have removed UDPLITE all together -

    Of course, I am on openSUSE/Tumbleweed so we have:

    mitmanek~/b/m/mistral-vibe (git: factory)$ uname -a
    Linux mitmanek.cepl.eu 7.0.2-1-default #1 SMP PREEMPT_DYNAMIC Tue Apr 28 04:27:33 UTC 2026 (46da294) x86_64 x86_64 x86_64 GNU/Linux
    mitmanek~/b/m/mistral-vibe (git: factory)$ 
  5. xry111 commented on May 11, 2026

    @xry111
    Contributor

    Linux 7.1 actually:

    git log v7.0..v7.1-rc1 | grep d6e0f04bf22d9b25b530c5e04f82664eac942719
    commit d6e0f04bf22d9b25b530c5e04f82664eac942719
    

    I guess openSUSE emulated the removal with 7.0 by disabling UDPLite in the kernel configuration.

  6. thesamesam commented on Jun 29, 2026

    @thesamesam
    Contributor

    There was a duplicate bug, it seems: #149776.

    Fixed by 3cfc249 (#149777).

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

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions