bpitman commented on PR #421:
URL: 
https://github.com/apache/httpcomponents-core/pull/421#issuecomment-1693765595

   It would have saved me a lot of time if this had worked.  Having InetAddress 
in HttpHost made it seem like it supported my needs right out of the box.  Look 
at my changes to see what's needed to preserve the InetAddress.
   
   If the hostname is not in dns (which we don't always have control over):
   ```
   [error] Caused by: java.net.UnknownHostException: upload-test.domain.com
   ```
   
   Of when it does exist, it may resolve to a different node or resolve to a 
load balancer listening on a different port.
   
   ```
   # resolved to load balancer listening on 443, not 8443
   [error] Caused by: java.net.SocketTimeoutException: 30 SECONDS
   
   # resolved to different host
   # /etc/hosts: 192.168.30.11 my-upload-test.domain.com
   [1398318490] [connState=ACTIVE, inbuf=[mode=OUTPUT pos=2 lim=2 cap=8192], 
outbuf=[mode=OUTPUT pos=134 lim=134 cap=8192], 
inputWindow=65533connState=ACTIVE, inbuf=[mode=OUTPUT pos=2 lim=2 cap=8192], 
outbuf=[mode=OUTPUT pos=134 lim=134 cap=8192], inputWindow=65533, 
incoming=[requestState=COMPLETE, responseState=COMPLETE, 
responseCommitted=true, keepAlive=true, done=false], outgoing=[], pipeline=0]
   my-upload-test.domain.com/192.168.30.11:8443 exchange completed (connection 
kept alive)
   ```


-- 
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: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to