Skip to content

Commit c7c0421

Browse files
committed
Try platform threads.
1 parent b407abb commit c7c0421

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

java-components/domain-proxy/client/src/main/java/com/redhat/hacbs/domainproxy/client/DomainProxyClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public void start() {
5050
final UnixDomainSocketAddress address = UnixDomainSocketAddress.of(domainSocket);
5151
final SocketChannel channel = SocketChannel.open(address);
5252
// Write from socket to channel
53-
Thread.startVirtualThread(createSocketToChannelWriter(byteBufferSize, socket, channel));
53+
new Thread(createSocketToChannelWriter(byteBufferSize, socket, channel)).start();
5454
// Write from channel to socket
55-
Thread.startVirtualThread(createChannelToSocketWriter(byteBufferSize, channel, socket));
55+
new Thread(createChannelToSocketWriter(byteBufferSize, channel, socket)).start();
5656
}
5757
} catch (final IOException e) {
5858
Log.errorf(e, "Error initialising domain proxy client");

java-components/domain-proxy/server/src/main/java/com/redhat/hacbs/domainproxy/DomainProxyServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public void start() {
6262
final Socket socket = new Socket(LOCALHOST, httpServerPort);
6363
socket.setSoTimeout(1200000);
6464
// Write from socket to channel
65-
Thread.startVirtualThread(createSocketToChannelWriter(byteBufferSize, socket, channel));
65+
new Thread(createSocketToChannelWriter(byteBufferSize, socket, channel)).start();
6666
// Write from channel to socket
67-
Thread.startVirtualThread(createChannelToSocketWriter(byteBufferSize, channel, socket));
67+
new Thread(createChannelToSocketWriter(byteBufferSize, channel, socket)).start();
6868
}
6969
} catch (final IOException e) {
7070
Log.errorf(e, "Error initialising domain proxy server");

0 commit comments

Comments
 (0)