jira-importer opened a new issue, #1247:
URL: https://github.com/apache/httpcomponents-core/issues/1247

   **[Isaac Cruz 
Ballesteros](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=icruz)**
 opened 
**[HTTPCORE-727](https://issues.apache.org/jira/browse/HTTPCORE-727?redirect=false)**
 and commented
   
   When using TLS, endpointDetails.getReceivedBytesCount(), called on 
disconnection(), always returns 0. I have modified AsyncFileServerExample 
(attached) to enable TLS and get EndpointDetails to get that metric to 
reproduce this issue.
   
   After executing AsyncFileServerExample, I run
   
   ```
   wget --no-check-certificate https://localhost:8080/xxx
   ```
   
   (it will get a 404), and the output is:
   
   ```
   Sun, 30 Oct 2022 14:34:07 GMT | Listening on /[0:0:0:0:0:0:0:0]:8080
   Sun, 30 Oct 2022 14:34:11 GMT | handle() EndpointDetails: sent=0, received=0
   Sun, 30 Oct 2022 14:34:11 GMT | File .\xxx not found
   Sun, 30 Oct 2022 14:34:11 GMT | disconnected() EndpointDetails: sent=252, 
received=0 
   ```
   
   Notice how sent bytes is updated after handle(), but received is always 0.
   
   This is the output when switching to HTTP:
   
   ```
   Mon, 31 Oct 2022 08:09:29 GMT | Listening on /[0:0:0:0:0:0:0:0]:8080
   Mon, 31 Oct 2022 08:09:46 GMT | handle() EndpointDetails: sent=0, 
received=114
   Mon, 31 Oct 2022 08:09:46 GMT | File .\xxx not found
   Mon, 31 Oct 2022 08:09:46 GMT | disconnected() EndpointDetails: sent=252, 
received=114
   ```
   
   
   
   ---
   
   **Affects:** 5.1.4
   
   **Attachments:**
   - 
[AsyncFileServerExample.java](https://issues.apache.org/jira/secure/attachment/13051625/AsyncFileServerExample.java)
 (_10.46 kB_)
   
   **Backported to:** 
[5.1.5](https://github.com/apache/httpcomponents-core/milestone/77?closed=1)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to