samuel/go-zookeeper

Set timeouts now occur after error check

Opened this issue · 0 comments

The recent commit (2cc03de) for problems identified by deepsource.io adds more error checks for functions that may fail, which is great!

However, it also moves the unsetting of the read/write deadlines to after the read/write error check. This means that if an error occurs in a read or write, then the deadline for the connection will not be reset.