mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-03 20:27:58 +08:00
Merge pull request #3222 from JohnSimith/v6-dev
fix 启动server完成之后 1秒钟内启动client报错
This commit is contained in:
commit
13f2b0839e
@ -19,6 +19,12 @@ public class AioClientTest {
|
|||||||
Console.log("OK");
|
Console.log("OK");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//线程休息1秒,然后client 和 server 初始化完再连接
|
||||||
|
try {
|
||||||
|
Thread.sleep(1000);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
|
||||||
client.write(ByteBuffer.wrap("Hello".getBytes()));
|
client.write(ByteBuffer.wrap("Hello".getBytes()));
|
||||||
client.read();
|
client.read();
|
||||||
|
Loading…
Reference in New Issue
Block a user