-
Notifications
You must be signed in to change notification settings - Fork 21
Description
I had use request method of SSDB as follows: request("set","key","value"),then ,I shut down the network of SSDB Server.And some socket problems occurred,I thought that was not a big problem because I went to restart the network.But it become a big problem because the client won't reconnect,is something wrong while I using it? codes belows:
final SSDB sdb=new SSDB("cent1", 8888);
for(int i=0;i<1000;i++){
new Thread(new Runnable() {
@OverRide
public void run() {
while(true){
try {
String id=UUID.randomUUID().toString();
sdb.request("set",id,id);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}).start();
}
and I also found some exception below:
java.lang.Exception: Parse body_len error
at com.udpwork.ssdb.Link.parse(Link.java:136)
at com.udpwork.ssdb.Link.recv(Link.java:85)
at com.udpwork.ssdb.Link.request(Link.java:71)
at com.udpwork.ssdb.Link.request(Link.java:51)
at com.udpwork.ssdb.SSDB.request(SSDB.java:36)