sjamesr / jfreesane

Java API to talk to the SANE scanning daemon
Apache License 2.0
60 stars 25 forks source link

Pass connection and read timeouts to image data socket. #94

Closed sjamesr closed 4 years ago

sjamesr commented 4 years ago

SANE uses separate connections for control and image data. Currently, the control socket uses connection and read timeouts that can be specified by the user in the SaneSession.withRemoteSane methods. The image data socket uses no timeouts whatsoever. This can cause infinite delays in the case of network issues.

This change passes the user-specified connection and read timeouts to the data socket.

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 375


Files with Coverage Reduction New Missed Lines %
/home/travis/build/sjamesr/jfreesane/src/main/java/au/com/southsky/jfreesane/SaneSession.java 22 82.64%
<!-- Total: 22 -->
Totals Coverage Status
Change from base Build 373: 0.4%
Covered Lines: 947
Relevant Lines: 1157

💛 - Coveralls