Commit aae5bcf
Revert Solution 2 (loop.stop() method) due to persistent test failures
Solution 2 introduced persistent test failures in test_idle_heartbeat that
could not be diagnosed due to incomplete error messages. Since Solution 1
(fix atexit registration) was already approved and addresses the core issue
of Python shutdown crashes, reverting Solution 2 to maintain stability.
This commit reverts:
- f296d57: Implement Solution 2: Add loop.stop() method
- 10dd871: Fix async_watcher reference counting
- c65c5c5: Remove explicit ev_async_stop in Loop_dealloc
Keeping only Solution 1 (a2ed376) which:
- Fixes atexit registration to pass actual _global_loop instead of None
- Was approved with "LGTM" from @fruch
- Addresses the original shutdown crash issue without introducing test failures
The loop.stop() functionality can be reconsidered in the future if needed,
but only after proper testing and diagnosis of the test_idle_heartbeat issues.
Co-authored-by: fruch <340979+fruch@users.noreply.github.com>1 parent c65c5c5 commit aae5bcf
2 files changed
Lines changed: 0 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | 235 | | |
239 | 236 | | |
240 | 237 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | 238 | | |
249 | 239 | | |
250 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 33 | | |
45 | 34 | | |
46 | 35 | | |
47 | 36 | | |
48 | 37 | | |
49 | 38 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 39 | | |
55 | 40 | | |
56 | 41 | | |
| |||
71 | 56 | | |
72 | 57 | | |
73 | 58 | | |
74 | | - | |
75 | 59 | | |
76 | 60 | | |
77 | 61 | | |
| |||
0 commit comments