Selftest: attempt to HTTPS test server should time out and generate an error

Bug #392402 reported by Martitza
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil

Bug Description

Vincent and Martin made significant contributions leading to thsi report.

See also: bug #392401 (Packaging Bug: SSL certificates missing from 1.16 PPA)

Tests should not wait forever for test servers to start. Either the servers should time out or the test waiting for the server response should time out. Either way, the results should be a test failure so that testing can continue with the next test. Currently, a nonresponsive test https server results in selftest stalling. I have observed this for https, but similar logic should probably apply to all test servers.

Tags: https selftest

Related branches

Revision history for this message
Vincent Ladeuil (vila) wrote :

As noted in bug #392401, the culprit is _handle_request_noblock in python SocketServer.py, line 268.
Socket exceptions occurring in get_request() (a request in that context is really a connection
and an SSL socket should be initialized by that call) are ignored.

Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → Medium
status: New → Confirmed
Vincent Ladeuil (vila)
Changed in bzr:
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.3b1
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.