Closed MatthieuDartiailh closed 6 years ago
I removed a small of the debug that I fear may be a bit costly to keep. This is ready to merge as far as I am concerned since this is more correct than the previous version even if it does not appear to fix https://github.com/pyvisa/pyvisa/issues/319 in all cases. Any review welcome, and otherwise I will merge sometimes next week.
bors r+
The basic idea is that compared to the old version (pre PR 67), we can now get an empty read_data because the select timed out, which by itself may no mean anything, and we need to wait to see if we get a real timeout rather than complaining about EOFError early.
@svanan77 could you review and test. Hopefully this should fix https://github.com/pyvisa/pyvisa/issues/319 and given the nature of the issue, it is possible I could not easily reproduce locally.