java.io.EOFException with paho
问题 i want to make stress test on mosquitto, so i create some code as below for (int i = 0; i < 800; i++) { final int j = i; Thread t = new Thread(new Runnable() { @Override public void run() { System.out.println(j + " : ************"); try { MqttClient client = new MqttClient("tcp://192.168.88.203", SERVER_CLIENTID_PREFIX + j); client.connect(); MqttMessage message = new MqttMessage((j + ":me").getBytes()); message.setQos(2); client.publish(TOPIC_PREFIX + j, message); } catch