Relative Content

Tag Archive for javasocketsssltcpsslengine

Why in Virtual Thread startHandshake will blocking?

public class Main { public static SSLContext sslContext = null; // some sslContext public static void main(String[] args) throws IOException { startServer(); // startClient(); // is ok Thread.ofVirtual().start(() -> { try { startClient(); // why blocking ? } catch (IOException e) { throw new RuntimeException(e); } }); } public static void startServer() throws IOException { […]

Why in Virtual Thread startHandshake will blocking?

public class Main { public static SSLContext sslContext = null; // some sslContext public static void main(String[] args) throws IOException { startServer(); // startClient(); // is ok Thread.ofVirtual().start(() -> { try { startClient(); // why blocking ? } catch (IOException e) { throw new RuntimeException(e); } }); } public static void startServer() throws IOException { […]

Why in Virtual Thread startHandshake will blocking?

public class Main { public static SSLContext sslContext = null; // some sslContext public static void main(String[] args) throws IOException { startServer(); // startClient(); // is ok Thread.ofVirtual().start(() -> { try { startClient(); // why blocking ? } catch (IOException e) { throw new RuntimeException(e); } }); } public static void startServer() throws IOException { […]