MCPcopy Create free account
hub / github.com/apache/qpid-proton / pump

Function pump

python/tests/proton_tests/common.py:85–92  ·  view source on GitHub ↗

Transfer all pending bytes between two Proton engines by repeatedly calling peek/pop and push. Asserts that each engine accepts some bytes every time (unless it's already closed).

(transport1, transport2, buffer_size=1024)

Source from the content-addressed store, hash-verified

83
84
85def pump(transport1, transport2, buffer_size=1024):
86 """ Transfer all pending bytes between two Proton engines
87 by repeatedly calling peek/pop and push.
88 Asserts that each engine accepts some bytes every time
89 (unless it's already closed).
90 """
91 while (pump_uni(transport1, transport2, buffer_size) or pump_uni(transport2, transport1, buffer_size)):
92 pass
93
94
95def findfileinpath(filename, searchpath):

Callers 8

_pumpMethod · 0.70
_testSaslMechFunction · 0.70
pumpMethod · 0.70
pumpMethod · 0.70
test_cleanupMethod · 0.70
testTransportCLOSEDMethod · 0.70
testLinkDetachMethod · 0.70
pumpMethod · 0.70

Calls 1

pump_uniFunction · 0.85

Tested by 1

test_cleanupMethod · 0.56