You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2022/02/03 22:40:53 UTC

[maven-surefire] 02/02: blocking TCP session writes

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch InterruptedIOException
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit d180c787e658e960de2cd4e1064e34166e6ef393
Author: Tibor Digaňa <ti...@apache.org>
AuthorDate: Thu Feb 3 23:40:28 2022 +0100

    blocking TCP session writes
---
 .../booter/spi/SurefireMasterProcessChannelProcessorFactory.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/SurefireMasterProcessChannelProcessorFactory.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/SurefireMasterProcessChannelProcessorFactory.java
index 6232209..a2c4487 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/SurefireMasterProcessChannelProcessorFactory.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/SurefireMasterProcessChannelProcessorFactory.java
@@ -86,7 +86,7 @@ public class SurefireMasterProcessChannelProcessorFactory
             if ( sessionId != null )
             {
                 ByteBuffer buff = ByteBuffer.wrap( sessionId.getBytes( US_ASCII ) );
-                clientSocketChannel.write( buff );
+                clientSocketChannel.write( buff ).get();
             }
         }
         catch ( URISyntaxException | InterruptedException e )