MCPcopy Create free account
hub / github.com/apache/httpd / do_send

Method do_send

test/modules/http2/test_800_websockets.py:243–250  ·  view source on GitHub ↗
(proc)

Source from the content-addressed store, hash-verified

241 ping = WsFrame.client_ping(b'12345')
242
243 def do_send(proc):
244 for _ in range(frame_count):
245 try:
246 proc.stdin.write(ping.to_network())
247 proc.stdin.flush()
248 proc.wait(timeout=0.2)
249 except subprocess.TimeoutExpired:
250 pass
251
252 r, infos, frames = ws_run(env, path='/ws/echo/', do_input=do_send)
253 assert r.exit_code == 0

Callers

nothing calls this directly

Calls 1

to_networkMethod · 0.80

Tested by

no test coverage detected