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

Function pump

tests/python/proton_tests/common.py:107–115  ·  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

105 return True
106
107def pump(transport1, transport2, buffer_size=1024):
108 """ Transfer all pending bytes between two Proton engines
109 by repeatedly calling peek/pop and push.
110 Asserts that each engine accepts some bytes every time
111 (unless it's already closed).
112 """
113 while (pump_uni(transport1, transport2, buffer_size) or
114 pump_uni(transport2, transport1, buffer_size)):
115 pass
116
117def findfileinpath(filename, searchpath):
118 """Find filename in the searchpath

Callers 8

_pumpMethod · 0.85
_testSaslMechFunction · 0.85
pumpMethod · 0.85
pumpMethod · 0.85
test_cleanupMethod · 0.85
testTransportCLOSEDMethod · 0.85
testLinkDetachMethod · 0.85
pumpMethod · 0.85

Calls 1

pump_uniFunction · 0.85

Tested by 1

test_cleanupMethod · 0.68