You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: