Issue Type: New Feature New Feature
Assignee: stephenconnolly
Components: async-http-client, core
Created: 09/Jan/13 4:00 PM
Description:

For installations using WPAD or otherwise where it would be awkward to statically configure a single proxy server, it would be desirable to support java.net.useSystemProxies as http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html describes.

This would be an option in hudson.ProxyConfiguration, possibly requiring a restart once selected since this system property appears to be read just once when java.net classes are first used. When set, open and similar calls would just use java.net calls without further ado (in fact it is unclear why the current code does not simply set a ProxySelector and thus bypass the need for such methods).

jenkins.plugins.asynchttpclient.AHCUtils would also need to take note of this field; if set, it would need to call java.net.ProxySelector to pick a proxy. It is unfortunately designed incorrectly in that it assumes a single proxy, whereas ProxySelector asks for a particular host and protocol, since it is common for corporate LANs to use proxies for some hosts but not others; may suffice to deprecate this simplistic method and for the benefit of old clients have it pick nowhere.net and HTTP as a typical pair.

Project: Jenkins
Labels: proxy
Priority: Major Major
Reporter: Jesse Glick
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to