[mellanox] Block the select function by default in get_transceiver_change_event() (#2422)
* Use default timeout value which will block the select function * Submodule update for argument type issue in Select class Submodule update sonic-swss-common: e8caaea - Align the argument type with epoll_wait() (#255) 3ea133d - [selectable]: Update throw message (#253) Signed-off-by: Kevin Wang <kevinw@mellanox.com>
This commit is contained in:
parent
ab6a52f122
commit
1acb6717d9
@ -176,7 +176,11 @@ class SfpUtil(SfpUtilBase):
|
||||
if 'LIVENESS' not in keys:
|
||||
return False, phy_port_dict
|
||||
|
||||
(state, c) = self.db_sel.select(timeout)
|
||||
if timeout:
|
||||
(state, c) = self.db_sel.select(timeout)
|
||||
else:
|
||||
(state, c) = self.db_sel.select()
|
||||
|
||||
if state == self.db_sel_timeout:
|
||||
status = True
|
||||
elif state != self.db_sel_object:
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit edbfeec663f32585cbf3468a88deb950fed3bb69
|
||||
Subproject commit e8caaead527d46d42e41e99b884f41c57f70018b
|
Loading…
Reference in New Issue
Block a user