Skip to content

test_httpservers hangs on an IPv6-only host #82079

Open

Description

@gpshead
BPO 37898
Nosy @gpshead

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/gpshead'
closed_at = None
created_at = <Date 2019-08-20.18:33:34.366>
labels = ['3.7', '3.8', 'type-bug', 'tests', '3.9']
title = 'test_httpservers hangs on an IPv6-only host'
updated_at = <Date 2019-08-20.18:33:34.366>
user = 'https://github.com/gpshead'

bugs.python.org fields:

activity = <Date 2019-08-20.18:33:34.366>
actor = 'gregory.p.smith'
assignee = 'gregory.p.smith'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2019-08-20.18:33:34.366>
creator = 'gregory.p.smith'
dependencies = []
files = []
hgrepos = []
issue_num = 37898
keywords = []
message_count = 1.0
messages = ['350034']
nosy_count = 1.0
nosy_names = ['gregory.p.smith']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue37898'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

Activity

  1. gpshead commented on Aug 20, 2019

    @gpshead
    MemberAuthor
    test_err (test.test_httpservers.RequestHandlerLoggingTestCase) ... Exception in thread Thread-1:
    Traceback (most recent call last):
      File "/home/greg/oss/cpython/Lib/threading.py", line 938, in _bootstrap_inner
        self.run()
      File "/home/greg/oss/cpython/Lib/test/test_httpservers.py", line 50, in run
        self.server = HTTPServer(('localhost', 0), self.request_handler)
      File "/home/greg/oss/cpython/Lib/socketserver.py", line 452, in __init__
        self.server_bind()
      File "/home/greg/oss/cpython/Lib/http/server.py", line 137, in server_bind
        socketserver.TCPServer.server_bind(self)
      File "/home/greg/oss/cpython/Lib/socketserver.py", line 466, in server_bind
        self.socket.bind(self.server_address)
    OSError: [Errno 99] Cannot assign requested address

    I'm preparing an IPv6-only buildbot. There is no IPv4 localhost.

  2. self-assigned this
    on Aug 20, 2019
  3. added
    testsTests in the Lib/test dir
    type-bugAn unexpected behavior, bug, or error
    on Aug 20, 2019
  4. transferred this issue fromon Apr 10, 2022
  5. removed their assignment
    on Jul 2, 2026
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

    3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifetestsTests 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