Skip to content

Commit edb820b

Browse files
author
chengyitian
committed
AJ-765: fix issue for set 'readTimeout';
1 parent 6a85915 commit edb820b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/xxdb/DBConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ private boolean connect() throws IOException {
196196
if (this.connTimeout_ > 0 && this.connectTimeout_ == 0)
197197
socket_.connect(new InetSocketAddress(hostName_, port_), connTimeout_);
198198
else if (this.connTimeout_ > 0 && this.connectTimeout_ > 0)
199-
socket_.connect(new InetSocketAddress(hostName_, port_), connTimeout_);
199+
socket_.connect(new InetSocketAddress(hostName_, port_), connectTimeout_);
200200
else if (this.connTimeout_ == 0 && this.connectTimeout_ > 0)
201-
socket_.connect(new InetSocketAddress(hostName_, port_), connTimeout_);
201+
socket_.connect(new InetSocketAddress(hostName_, port_), connectTimeout_);
202202
else if (this.connTimeout_ == 0 && this.connectTimeout_ == 0)
203203
socket_.connect(new InetSocketAddress(hostName_, port_), 3000);
204204
} catch (IOException ex) {

0 commit comments

Comments
 (0)