Skip to content

Commit 503f97b

Browse files
committed
Use sendall instead of send in sendfrag
1 parent af50c0a commit 503f97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vxi11/rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def sendfrag(sock, last, frag):
219219
x = len(frag)
220220
if last: x = x | 0x80000000
221221
header = struct.pack(">I", x)
222-
sock.send(header + frag)
222+
sock.sendall(header + frag)
223223

224224
def sendrecord(sock, record):
225225
if len(record) > 0:

0 commit comments

Comments
 (0)