Rodolfo Alonso Hernandez fb26aaec78 Fix Timeout context
This patch fixes the native implementation Timeout context exception.
The Timeout class type calls ``_wait()`` in ``start()``, which blocks
immediately. This prevents it from working as a context manager.

How it is fixed:
* Added timeout checking in ``__exit__``. When exiting the context
  manager, it checks if a timeout occurred and raises the exception.
* Added a ``_timed_out`` flag to track if the timeout occurred.
* Fixed ``cancel()`` to handle the case where timer might be None.

Related-Bug: #2130631

Change-Id: I7aa94c67ccdd222ef9e69b7be453a0dbbc2fcad2
Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
2026-01-15 08:02:19 +00:00
2025-09-01 09:43:01 +02:00
2026-01-15 08:02:19 +00:00
2024-05-06 12:37:04 +02:00
2022-07-21 16:02:02 +02:00
2019-04-19 19:48:36 +00:00
2018-09-04 17:00:24 +00:00
2024-06-28 07:33:22 +00:00
2018-09-04 17:00:24 +00:00
2020-07-08 14:08:19 +02:00
2025-10-03 01:59:37 +09:00
2023-08-17 09:58:21 +00:00
2024-02-02 23:57:41 +09:00

os-ken

A component-based software defined networking framework in OpenStack.

This is a fork of the Ryu library tailored for OpenStack Neutron.

Description
A component-based software defined networking framework for OpenStack.
Readme 10 MiB
Languages
Python 86.1%
Erlang 13.3%
C 0.4%
Shell 0.2%