bigbadhacker / proxy-vole

Automatically exported from code.google.com/p/proxy-vole
0 stars 0 forks source link

ProxyListFallbackSelector returns a proxy rather than DIRECT when asked the proxy for the proxy. #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
Our environment currently has the proxy based in our gateway with all machines 
currently having access to it.  As such the proxy.pack file we have resolves 
that access to the proxy needs to be via the proxy. 

ie FindProxyForURL ("socket://192.168.0.1:8080","192.168.0.1") resolves to 
"PROXY 192.25.105.80:8080" and subsequently passing back a HTTP proxy back to 
the SocksSocketImpl which is throwing a "Unknown proxy type : Http"

What is the expected output? What do you see instead?
When ask the ProxyListFallbackSelector for the proxy for the proxy i would have 
expected Direct. 

Having looked at the DefaultProxySelector it passes back Direct when asked for 
the proxy address.  

What version of the product are you using? On what operating system?

Proxy-vole version: 20131209
Java Version: 1.6.0_u29x64
Os Version: Windows 7

Please provide any additional information below.

As a work around i have used the ProxyBypassListSelector to exclude the proxy 
from the list. 

Below is the stack trace that i am currently seeing. 
Caused by: java.net.SocketException: Unknown proxy type : HTTP
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:370)
    at java.net.Socket.connect(Socket.java:529)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
    at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:158)
    at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:203)
    at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:191)
    at au.gov.immi.sfp.ui.web.test.headless.core.HttpTransport.doGet(HttpTransport.java:139)

Original issue reported on code.google.com by Steve.ha...@gmail.com on 24 Apr 2014 at 3:28