Lines 18-23
Link Here
|
18 |
import java.io.EOFException; |
18 |
import java.io.EOFException; |
19 |
import java.io.Writer; |
19 |
import java.io.Writer; |
20 |
import java.net.Socket; |
20 |
import java.net.Socket; |
|
|
21 |
import java.net.Proxy; |
22 |
import java.net.InetSocketAddress; |
21 |
import java.sql.*; |
23 |
import java.sql.*; |
22 |
|
24 |
|
23 |
import org.postgresql.util.GT; |
25 |
import org.postgresql.util.GT; |
Lines 55-61
Link Here
|
55 |
this.host = host; |
57 |
this.host = host; |
56 |
this.port = port; |
58 |
this.port = port; |
57 |
|
59 |
|
58 |
changeSocket(new Socket(host, port)); |
60 |
Socket socket = null; |
|
|
61 |
socket = new Socket(Proxy.NO_PROXY); |
62 |
|
63 |
InetSocketAddress socketAddress = new InetSocketAddress(host, port); |
64 |
socket.connect(socketAddress, 120000); |
65 |
changeSocket(socket); |
59 |
setEncoding(Encoding.getJVMEncoding("US-ASCII")); |
66 |
setEncoding(Encoding.getJVMEncoding("US-ASCII")); |
60 |
} |
67 |
} |
61 |
|
68 |
|