[Olefy] Update base to Alpine 3.24, fix event loop for Python 3.14

This commit is contained in:
FreddleSpl0it committed 2026-10-28 08:51:33 +01:00
1 parent 8aaf68ffb5
commit 4884ed0cbf
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
FROM alpine:3.21
FROM alpine:3.24
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
+4 -3
View File
@@ -67,7 +67,7 @@ logger.debug('olefy listen address string: {} (type {})'.format(olefy_listen_add
if not olefy_listen_addr_string:
olefy_listen_addr = ""
else:
addr_re = re.compile('[\[" \]]')
addr_re = re.compile(r'[\[" \]]')
olefy_listen_addr = addr_re.sub('', olefy_listen_addr_string.replace("'", "")).split(',')
# log runtime variables
@@ -206,8 +206,9 @@ class AIO(asyncio.Protocol):
self.transport.close()
# start the listeners
loop = asyncio.get_event_loop()
# start the listeners, Python >= 3.14 no longer creates a loop in get_event_loop()
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
# each client connection will create a new protocol instance
coro = loop.create_server(AIO, olefy_listen_addr, olefy_listen_port)
server = loop.run_until_complete(coro)