'8125 is basically an issue with the way HTTP SSL connections handle the
Connection: Close header.
:see: https://github.com/andresriancho/w3af/issues/8125'

def test_bad_file_descriptor_8125_local(self):

    raw_http_response = 'HTTP/1.1    200    Ok\r\nConnection:    close\r\nContent-Type:    text/html\r\nContent-Length:    3\r\n\r\nabc'
    certfile = os.path.join(ROOT_PATH, 'plugins', 'tests', 'audit', 'certs', 'invalid_cert.pem')
    port = get_unused_port()
    s = SSLServer('localhost', port, certfile, http_response=raw_http_response)
    s.start()
    body = 'abc'
    mock_url = ('https://localhost:%s/' % port)
    url = URL(mock_url)
    http_response = self.uri_opener.GET(url, cache=False)
    self.assertEqual(body, http_response.body)
    s.stop()
    self.assertEqual(set([e.strerror for e in s.errors]), {'Bad    file    descriptor'})
