MCPcopy Create free account
hub / github.com/pyload/pyload / forward

Function forward

module/plugins/internal/misc.py:935–943  ·  view source on GitHub ↗
(source, destination)

Source from the content-addressed store, hash-verified

933
934
935def forward(source, destination):
936 try:
937 bufsize = 1024
938 bufdata = source.recv(bufsize)
939 while bufdata:
940 destination.sendall(bufdata)
941 bufdata = source.recv(bufsize)
942 finally:
943 destination.shutdown(socket.SHUT_WR)
944
945
946def compute_checksum(filename, hashtype):

Callers

nothing calls this directly

Calls 3

recvMethod · 0.45
sendallMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected