"main" prio=10 tid=0x00007f79a4009800 nid=0x32ec runnable [0x00007f79aa67a000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:153)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2664)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2680)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3157)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:865)
at java.io.ObjectInputStream.
at com.sun.btrace.client.Client.submit(Client.java:402)
at com.sun.btrace.client.Main.main(Main.java:206)
---
sock.setSoTimeout(5 * 1000); //milliseconds
Other details on sockets:
- https://devwebcl.blogspot.com/2018/12/most-interesting-socket-options.html
- https://docs.oracle.com/javase/7/docs/api/java/net/Socket.html#connect(java.net.SocketAddress,%20int)
1 comment :
Post a Comment