Skip to content

Commit d0be634

Browse files
authored
[muxcable] Remove Xcvrd Sleep (sonic-net#174)
When using redis select, xcvrd is sleeping for 100 msec which appears unnecessary after process all content of selectable objects. signed-off-by: Tamer Ahmed <[email protected]>
1 parent cc3803f commit d0be634

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sonic-xcvrd/xcvrd/xcvrd_utilities/y_cable_helper.py

-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55

66
import threading
7-
import time
87

98
from sonic_py_common import daemon_base, logger
109
from sonic_py_common import multi_asic
@@ -1038,11 +1037,6 @@ def task_worker(self):
10381037
# Use timeout to prevent ignoring the signals we want to handle
10391038
# in signal_handler() (e.g. SIGTERM for graceful shutdown)
10401039

1041-
# A brief sleep appears necessary in this loop or any spawned
1042-
# update threads will get stuck. Appears to be due to the sel.select() call.
1043-
# TODO: Eliminate the need for this sleep.
1044-
time.sleep(0.1)
1045-
10461040
(state, selectableObj) = sel.select(SELECT_TIMEOUT)
10471041

10481042
if state == swsscommon.Select.TIMEOUT:

0 commit comments

Comments
 (0)