Commit 80e3b0e0 authored by Jason Madden's avatar Jason Madden

The linux_iouring backend appears to 'work' on bionic

parent 5f3880de
...@@ -1324,7 +1324,7 @@ if TRAVIS: ...@@ -1324,7 +1324,7 @@ if TRAVIS:
'test_ssl.ContextTests.test_options', 'test_ssl.ContextTests.test_options',
'test_ssl.ThreadedTests.test_alpn_protocols', 'test_ssl.ThreadedTests.test_alpn_protocols',
'test_ssl.ThreadedTests.test_default_ecdh_curve', 'test_ssl.ThreadedTests.test_default_ecdh_curve',
'test_ssl.ThreadedTests.test_shared_ciphers,' 'test_ssl.ThreadedTests.test_shared_ciphers',
] ]
......
...@@ -176,3 +176,14 @@ def libev_supports_linux_aio(): ...@@ -176,3 +176,14 @@ def libev_supports_linux_aio():
from platform import release from platform import release
return system() == 'Linux' and LooseVersion(release() or '0') >= LooseVersion('4.19') return system() == 'Linux' and LooseVersion(release() or '0') >= LooseVersion('4.19')
def libev_supports_linux_iouring():
# libev requires kernel XXX to be able to support linux io_uring.
# It fails with the kernel in fedora rawhide (4.19.76) but
# works (doesn't fail catastrophically when asked to create one)
# with kernel 5.3.0 (Ubuntu Bionic)
from distutils.version import LooseVersion
from platform import system
from platform import release
return system() == 'Linux' and LooseVersion(release() or '0') >= LooseVersion('5.3')
...@@ -32,10 +32,11 @@ class Test(unittest.TestCase): ...@@ -32,10 +32,11 @@ class Test(unittest.TestCase):
) )
BACKENDS_THAT_WILL_FAIL_TO_CREATE_AT_RUNTIME = ( BACKENDS_THAT_WILL_FAIL_TO_CREATE_AT_RUNTIME = (
# This fails on the Ubuntu Bionic image, and on # This fails on the Fedora Rawhide 33 image. It's not clear
# the Fedora Rawhide 33 image. It's not clear why; needs # why; needs investigated.
# investigated.
'linux_iouring', 'linux_iouring',
) if not sysinfo.libev_supports_linux_iouring() else (
) )
BACKENDS_THAT_WILL_FAIL_TO_CREATE_AT_RUNTIME += ( BACKENDS_THAT_WILL_FAIL_TO_CREATE_AT_RUNTIME += (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment