mirror of
https://opendev.org/x/pyghmi
synced 2025-07-03 11:15:34 +00:00
Remove overly aggressive packet processing
With the socket pooling, we no longer have to be as aggressive about trying to get packets out of the socket buffer. However, in a very busy system of several hundred nodes, this aggressive processing tends to produce larger python stacks and can exceed the default 1,000 limit. We may have to resort to increasing the limit one day, but for now this case can be avoided. Change-Id: I83bdaa2d8ad464727a69e6ece064f51cd4318822
This commit is contained in:
@ -1403,11 +1403,6 @@ class Session(object):
|
||||
self.nowait = False
|
||||
|
||||
def _xmit_packet(self, retry=True, delay_xmit=None):
|
||||
if not self.nowait: # if we are retrying, we really need to get the
|
||||
# packet out and get our timeout updated
|
||||
Session.wait_for_rsp(timeout=0, callout=False) # take opportunity
|
||||
# to drain the socket queue if
|
||||
# applicable
|
||||
if self.sequencenumber: # seq number of zero will be left alone, it is
|
||||
# special, otherwise increment
|
||||
self.sequencenumber += 1
|
||||
|
Reference in New Issue
Block a user