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

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f20f12107 AXIS2-6051, more minor code cleanup after commit to 
httpclient5
8f20f12107 is described below

commit 8f20f121072cab1ad27b07bad3cd82eb29b972b9
Author: Robert Lazarski <rlazar...@alphatheory.com>
AuthorDate: Wed May 29 07:07:56 2024 -1000

    AXIS2-6051, more minor code cleanup after commit to httpclient5
---
 .../apache/axis2/transport/http/server/AxisHttpConnectionImpl.java  | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/modules/transport/http/src/org/apache/axis2/transport/http/server/AxisHttpConnectionImpl.java
 
b/modules/transport/http/src/org/apache/axis2/transport/http/server/AxisHttpConnectionImpl.java
index b574f7da10..231f569e7f 100644
--- 
a/modules/transport/http/src/org/apache/axis2/transport/http/server/AxisHttpConnectionImpl.java
+++ 
b/modules/transport/http/src/org/apache/axis2/transport/http/server/AxisHttpConnectionImpl.java
@@ -77,15 +77,12 @@ import java.net.Socket;
 import java.net.SocketAddress;
 import java.net.SocketException;
 import java.net.SocketTimeoutException;
-import java.time.LocalDateTime;
 import java.util.List;
 import java.util.ArrayList;
 import java.util.concurrent.atomic.AtomicReference;
 import javax.net.ssl.SSLSocket;
 import javax.net.ssl.SSLSession;
 
-import java.util.UUID;
-
 public class AxisHttpConnectionImpl implements AxisHttpConnection {
 
     private static final Log HEADERLOG =
@@ -223,7 +220,6 @@ public class AxisHttpConnectionImpl implements 
AxisHttpConnection {
     // receiveRequestHeader() and receiveRequestEntity()
     @Override
     public ClassicHttpRequest receiveRequest() throws HttpException, 
IOException {
-        String uuid = UUID.randomUUID().toString();
         // Prepare input stream
         final SocketHolder socketHolder = ensureOpen();
         this.in = socketHolder.getInputStream();
@@ -231,7 +227,7 @@ public class AxisHttpConnectionImpl implements 
AxisHttpConnection {
         this.inbuffer.clear();
         final int i = this.inbuffer.readLine(headLine, this.in);
         if (i == -1) {
-            throw new IOException("readLine() from SessionInputBufferImpl 
returned -1 in method receiveRequest() with uuid: " +uuid+ "  ... at time: " 
+LocalDateTime.now());
+            throw new IOException("readLine() from SessionInputBufferImpl 
returned -1 in method receiveRequest()");
         }
 
        final Header[] headers = AbstractMessageParser.parseHeaders(

Reply via email to