Commit 07222ff
Fix high CPU usage from shared list reference in select() event loop (#361)
* Initial plan
* Fix high CPU usage bug in server event loop
Changed line 264 in etesync_dav/radicale_main/server.py from:
rlist = xlist = []
to:
rlist, xlist = [], []
This fixes a critical bug where both variables pointed to the same list,
causing select.select() to receive the same sockets for both readable
and exceptional conditions, leading to inefficient event handling and
high CPU usage.
Co-authored-by: Victor239 <12621257+Victor239@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent 91ceb92 commit 07222ff
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments