scruz-denodo commented on code in PR #1538:
URL: https://github.com/apache/arrow-java/pull/1538#discussion_r4784431278


##########
flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/ArrowFlightConnection.java:
##########
@@ -148,6 +148,7 @@ private static ArrowFlightSqlClientHandler 
createNewClientHandler(
         .withConnectTimeout(config.getConnectTimeout())
         .withDriverVersion(driverVersion)
         .withOAuthConfiguration(config.getOauthConfiguration())
+        .withProxyDetector(config.getProxyDetector())

Review Comment:
   I have being doing test with a local squid instance and I decided to push 
two commits on the branch.
   
   - first one 
[aa82b27](https://github.com/apache/arrow-java/pull/1538/commits/aa82b2766cb2c7169c96d4b305ef0789be1d8af4)
 adds the proxy using the `setProxy` method you suggested. This change has a 
limitation with the authenticated proxies. The `setProxy` does not have support 
for setting the `proxyUser`/`proxyPassword` values. 
   
   - second one 
[08d0c7c](https://github.com/apache/arrow-java/pull/1538/commits/08d0c7c318da076ca302904efe490f7c8e886634)
 adds the support for specifying the proxy credentials. It uses this class for 
making the proxy connection `ProxyHttpRequestSender`. There are more changes 
than the commit using the `setProxy` from nimbus, so I split the change on two 
commits in case you prefer to stay only with the first one assuming the 
mentioned limitation. 



-- 
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]

Reply via email to