MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / check_fullness

Method check_fullness

ssnet.py:345–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

343 return total
344
345 def check_fullness(self):
346 if self.fullness > 32768:
347 if not self.too_full:
348 self.send(0, CMD_PING, 'rttest')
349 self.too_full = True
350 #ob = []
351 #for b in self.outbuf:
352 # (s1,s2,c) = struct.unpack('!ccH', b[:4])
353 # ob.append(c)
354 #log('outbuf: %d %r\n' % (self.amount_queued(), ob))
355
356 def send(self, channel, cmd, data):
357 data = str(data)

Callers 2

_mainFunction · 0.95
mainFunction · 0.95

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected