Home
last modified time | relevance | path

Searched refs:setSoTimeout (Results 1 – 25 of 28) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/net/
DSocketTimeoutTest.java84 s.setSoTimeout(TIMEOUT_MILLIS / 2); in testSocketConnectTimeout()
98 s.setSoTimeout(TIMEOUT_MILLIS); in testSocketReadTimeout()
111 sock.setSoTimeout(TIMEOUT_MILLIS); in testSocketWriteNeverTimeouts()
156 s.setSoTimeout(TIMEOUT_MILLIS); in testServerSocketAcceptTimeout()
167 s.socket().setSoTimeout(TIMEOUT_MILLIS); in testServerSocketChannelAcceptTimeout()
175 s.setSoTimeout(TIMEOUT_MILLIS); in testDatagramSocketReceive()
DOldDatagramPacketTest.java36 ss.setSoTimeout(3000); in test_getPort()
51 cs.setSoTimeout(3000); in test_getPort()
DDatagramSocketTest.java162 dgramSocket.setSoTimeout(100); in testExplicitFilter()
180 dgramSocket.setSoTimeout(100); in testExplicitFilter()
205 ds.setSoTimeout(1000); in testAddressSameIfUnchanged()
DOldServerSocketTest.java89 s.setSoTimeout(2000); in test_ConstructorII()
233 s.setSoTimeout(timeoutSet); in test_getSoTimeout_setSoTimeout()
244 s.setSoTimeout(1000); in test_getSoTimeout_setSoTimeout()
DMulticastSocketTest.java49 mcSock.setSoTimeout(SO_TIMEOUT); in testGroupReceive()
DServerSocketTest.java38 ss.setSoTimeout(1234); in testTimeoutAfterAccept()
DOldSocketTest.java393 s.setSoTimeout(1500); in test_getSoTimeout_setSoTimeout()
403 s.setSoTimeout(1000); in test_getSoTimeout_setSoTimeout()
1303 theSocket.setSoTimeout(1000); in test_connectLjava_net_SocketAddressI_setSOTimeout()
1308 theSocket.setSoTimeout(2000); in test_connectLjava_net_SocketAddressI_setSOTimeout()
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java184 s.setSoTimeout(readTimeout); in doConnect()
186 s.setSoTimeout(defaultSoTimeout); in doConnect()
262 serverSocket.setSoTimeout(timeout);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java135 s.setSoTimeout(2000); in test_ConstructorII()
169 s.setSoTimeout(5000); in test_ConstructorIILjava_net_InetAddress()
185 s.setSoTimeout(5000); in test_accept()
203 ss.setSoTimeout(12000); in test_accept()
239 ss2.setSoTimeout(500); in test_accept()
316 s.setSoTimeout(timeoutSet); in test_getSoTimeout()
372 s.setSoTimeout(timeoutSet); in test_setSoTimeoutI()
384 s.setSoTimeout(10000); in test_setSoTimeoutI()
DDatagramSocketTest.java63 serverSocket.setSoTimeout(2000); in DatagramServer()
178 ds.setSoTimeout(2000); in testConnect_connectToSelf()
215 ds.setSoTimeout(2000); in testConnect_echoServer()
257 ds.setSoTimeout(2000); in testConnect_connectDisconnectConnectThenSendRecv()
280 ds.setSoTimeout(2000); in testConnect_connectDisconnectThenSendRecv()
305 ds.setSoTimeout(2000); in testConnect_connectTwice()
411 ds.setSoTimeout(timeoutSet); in test_getSoTimeout()
DDatagramPacketTest.java137 socket.setSoTimeout(3000); in test_getPort()
DMulticastSocketTest.java874 socket.setSoTimeout(5000); // Prevent eternal block in. in test_setLoopbackModeSendReceive()
941 ms.setSoTimeout(2000); in createReceivingSocket()
DSocketTest.java97 socket.setSoTimeout(5000); in run()
973 client.setSoTimeout(timeoutSet); in test_getSoTimeout()
1505 client.setSoTimeout(timeoutSet); in test_setSoTimeoutI()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java54 serverSocket.setSoTimeout(1000); in MockServer()
92 socket.setSoTimeout(1000); in run()
103 socket.setSoTimeout(1000); in run()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java680 s.setSoTimeout(readTimeout); in openPassiveDataConnection()
682 s.setSoTimeout(defaultSoTimeout); in openPassiveDataConnection()
770 portSocket.setSoTimeout(connectTimeout); in openDataConnection()
773 portSocket.setSoTimeout(defaultConnectTimeout); in openDataConnection()
778 clientSocket.setSoTimeout(readTimeout); in openDataConnection()
781 clientSocket.setSoTimeout(defaultSoTimeout); in openDataConnection()
969 s.setSoTimeout(readTimeout); in doConnect()
971 s.setSoTimeout(defaultSoTimeout); in doConnect()
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java152 public void setSoTimeout(int timeout) throws SocketException { in setSoTimeout() method in ServerSocketAdaptor
DSocketAdaptor.java352 public void setSoTimeout(int timeout) throws SocketException { in setSoTimeout() method in SocketAdaptor
DDatagramSocketAdaptor.java257 public void setSoTimeout(int timeout) throws SocketException { in setSoTimeout() method in DatagramSocketAdaptor
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java2598 datagramChannelReceiver.socket().setSoTimeout(TIME_OUT); in test_transferFromLReadableByteChannelJJ_DatagramChannel()
2601 datagramChannelSender.socket().setSoTimeout(TIME_OUT); in test_transferFromLReadableByteChannelJJ_DatagramChannel()
2603 datagramChannelSender.socket().setSoTimeout(TIME_OUT); in test_transferFromLReadableByteChannelJJ_DatagramChannel()
2607 datagramChannelReceiver.socket().setSoTimeout(TIME_OUT); in test_transferFromLReadableByteChannelJJ_DatagramChannel()
2637 socketChannelReceiver.socket().setSoTimeout(TIME_OUT); in test_transferFromLReadableByteChannelJJ_SocketChannel()
2640 serverSocketChannel.socket().setSoTimeout(TIME_OUT); in test_transferFromLReadableByteChannelJJ_SocketChannel()
2642 socketChannelSender.socket().setSoTimeout(TIME_OUT); in test_transferFromLReadableByteChannelJJ_SocketChannel()
2945 socketChannelReceiver.socket().setSoTimeout(TIME_OUT); in test_transferToJJLWritableByteChannel_SocketChannel()
2948 serverSocketChannel.socket().setSoTimeout(TIME_OUT); in test_transferToJJLWritableByteChannel_SocketChannel()
2950 socketChannelSender.socket().setSoTimeout(TIME_OUT); in test_transferToJJLWritableByteChannel_SocketChannel()
[all …]
DDatagramChannelTest.java1162 this.datagramSocket2.setSoTimeout(TIME_UNIT); in testReceiveSend_Normal_S2S()
1210 this.datagramSocket2.setSoTimeout(TIME_UNIT); in testReceiveSend_Empty_S2S()
1313 this.datagramSocket1.setSoTimeout(6000); in receiveOnDatagramSocket1()
2532 dc.socket().setSoTimeout(4000); in test_concurrentShutdown()
/libcore/support/src/test/java/tests/support/
DSupport_TestWebServer.java218 ss.setSoTimeout(5000); in init()
569 s.setSoTimeout(mTimeout); in handleClient()
/libcore/ojluni/src/main/java/java/net/
DServerSocket.java651 public synchronized void setSoTimeout(int timeout) throws SocketException { in setSoTimeout() method in ServerSocket
DDatagramSocket.java934 public synchronized void setSoTimeout(int timeout) throws SocketException { in setSoTimeout() method in DatagramSocket
DSocket.java1169 public synchronized void setSoTimeout(int timeout) throws SocketException { in setSoTimeout() method in Socket
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java224 server.setSoTimeout(10); in test_SSLSocket_getSupportedCipherSuites_connect()
229 client.setSoTimeout(10); in test_SSLSocket_getSupportedCipherSuites_connect()
811 server.setSoTimeout(1 * 1000); in test_SSLSocket_setUseClientMode()
825 client.setSoTimeout(1 * 1000); in test_SSLSocket_setUseClientMode()
1742 wrapping.setSoTimeout(expectedTimeoutMillis); in test_SSLSocket_setSoTimeout_basic()
1748 underlying.setSoTimeout(0); in test_SSLSocket_setSoTimeout_basic()
1767 underlying.setSoTimeout(1); in test_SSLSocket_setSoTimeout_wrapper()
1957 toRead.setSoTimeout(5 * 1000); in test_SSLSocket_interrupt_case()
2000 wrapping.setSoTimeout(readingTimeoutMillis); in test_SSLSocket_interrupt_read()

12