mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-28 12:13:24 +00:00
[Olefy] Update base to Alpine 3.24, fix event loop for Python 3.14
This commit is contained in:
2 files changed
+5
-4
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.21
|
FROM alpine:3.24
|
||||||
|
|
||||||
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
|
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ logger.debug('olefy listen address string: {} (type {})'.format(olefy_listen_add
|
|||||||
if not olefy_listen_addr_string:
|
if not olefy_listen_addr_string:
|
||||||
olefy_listen_addr = ""
|
olefy_listen_addr = ""
|
||||||
else:
|
else:
|
||||||
addr_re = re.compile('[\[" \]]')
|
addr_re = re.compile(r'[\[" \]]')
|
||||||
olefy_listen_addr = addr_re.sub('', olefy_listen_addr_string.replace("'", "")).split(',')
|
olefy_listen_addr = addr_re.sub('', olefy_listen_addr_string.replace("'", "")).split(',')
|
||||||
|
|
||||||
# log runtime variables
|
# log runtime variables
|
||||||
@@ -206,8 +206,9 @@ class AIO(asyncio.Protocol):
|
|||||||
self.transport.close()
|
self.transport.close()
|
||||||
|
|
||||||
|
|
||||||
# start the listeners
|
# start the listeners, Python >= 3.14 no longer creates a loop in get_event_loop()
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.new_event_loop()
|
||||||
|
asyncio.set_event_loop(loop)
|
||||||
# each client connection will create a new protocol instance
|
# each client connection will create a new protocol instance
|
||||||
coro = loop.create_server(AIO, olefy_listen_addr, olefy_listen_port)
|
coro = loop.create_server(AIO, olefy_listen_addr, olefy_listen_port)
|
||||||
server = loop.run_until_complete(coro)
|
server = loop.run_until_complete(coro)
|
||||||
|
|||||||
Reference in new issue
Block a user