mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Source is https://stackoverflow.com/a/49452683/1504003 with small adaptations (reset delay and retries when we get back a connection) Instead of creating the connection in the "main" method, loop and reopen a new event loop on failures, let the Protocol class handle connections and retries on failures. Reduce keepalive interval and store values in attributes. As many timeouts in systems are 60 seconds, a keepalive of 50 seconds is less likely to be stopped. Improve logs: the docstring of connection_lost is: The argument is either an exception object or None. The latter means a regular EOF is received, or the connection was aborted or closed by this side of the connection. When it receives no exception, it should not raise an error log.
Kardex device proxy. This is meant to run as a proxy between odoo and the JMIF server Using a proxy is required to make the synchronous JMIF protocol asynchronous for Odoo, by using ping backs. The proxy requires python >= 3.7.