Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.22.0: test_timeout_subsequent times out #240

Open
mtelka opened this issue Nov 19, 2023 · 0 comments
Open

0.22.0: test_timeout_subsequent times out #240

mtelka opened this issue Nov 19, 2023 · 0 comments

Comments

@mtelka
Copy link

mtelka commented Nov 19, 2023

While packaging httplib2 for OpenIndiana I noticed the test_timeout_subsequent test fails as follows:

___________________________ test_timeout_subsequent ____________________________
tests/test_other.py:137: in test_timeout_subsequent
    assert response.status == 200
E   AssertionError: assert 408 == 200
E    +  where 408 = {'content-type': 'text/plain', 'status': '408', 'content-length': 15}.status
        Handler    = <class 'tests.test_other.test_timeout_subsequent.<locals>.Handler'>
        _          = b'Request Timeout'
        http       = <httplib2.Http object at 0x7fffac2d0eb0>
        response   = {'content-length': 15, 'content-type': 'text/plain', 'status': '408'}
        uri        = 'http://localhost:60947/'
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "$(BUILD_DIR)/tests/__init__.py", line 331, in server_socket_thread
    fun(client, tick)
  File "$(BUILD_DIR)/tests/__init__.py", line 416, in server_request_socket_handler
    request = HttpRequest.from_buffered(buf)
  File "$(BUILD_DIR)/tests/__init__.py", line 184, in from_buffered
    return parse_http_message(cls, buf)
  File "$(BUILD_DIR)/tests/__init__.py", line 127, in parse_http_message
    start_line = buf.readline()
  File "$(BUILD_DIR)/tests/__init__.py", line 117, in readline
    self._fill(more=1)
  File "$(BUILD_DIR)/tests/__init__.py", line 88, in _fill
    chunk = self._sock.recv(8 << 10)
ConnectionResetError: [Errno 131] Connection reset by peer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant