Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang sending large payloads to Keysight scopes #17

Open
bobmcnamara opened this issue Oct 31, 2016 · 1 comment
Open

Hang sending large payloads to Keysight scopes #17

bobmcnamara opened this issue Oct 31, 2016 · 1 comment

Comments

@bobmcnamara
Copy link

bobmcnamara commented Oct 31, 2016

On Mac OS X, sending data larger than ~128K to a Keysight scope results in a timeout in recvfrag. This is caused by a bug in sendfrag where the code should have used sock.sendall instead of sock.send:

def sendfrag(sock, last, frag):
    x = len(frag)
    if last: x = x | 0x80000000
    header = struct.pack(">I", x)
    sock.sendall(header + frag)
@bobmcnamara bobmcnamara changed the title Hang due to bug in sendfrag Hang sending large payloads to Keysight scopes Jan 9, 2017
@alexforencich
Copy link
Contributor

Good find with sendall, this will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants