Merge pull request #3222 from JohnSimith/v6-dev

fix 启动server完成之后 1秒钟内启动client报错
This commit is contained in:
Golden Looly 2023-07-26 19:03:57 +08:00 committed by GitHub
commit 13f2b0839e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,12 @@ public class AioClientTest {
Console.log("OK");
}
});
//线程休息1秒然后client server 初始化完再连接
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
client.write(ByteBuffer.wrap("Hello".getBytes()));
client.read();