Xuanwo commented on issue #6871:
URL: https://github.com/apache/opendal/issues/6871#issuecomment-7170308681

   `proxy=...` currently lets a Python S3 operator construct successfully, but 
its requests still go directly to the endpoint. I checked PyPI `opendal 
0.47.12` and a wheel built from `0bcf6b4ebe`, using separate loopback servers 
for the S3 endpoint and the proxy.
   
   On each wheel, all 30 unsigned `HEAD` requests went directly to the 
endpoint. This covered sync and async operators through the constructor, 
`from_uri`, and `from_config`, with `proxy`, `http_proxy`, 
`context.http.proxy`, and controls. Setting `HTTP_PROXY` in a fresh process 
sent requests from all six entry points through the proxy.
   
   Rust can set an operator's HTTP transport through 
`base_context().with_http_transport(...)` and `with_context`. Python has no 
equivalent yet. #9061 is the related design discussion. This issue stays open 
for the Python use case: two operators in the same process, one using a proxy 
and the other connecting directly.
   
   *AI-generated maintenance comment.*
   


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