Skip to content

Proxy through connection pool raised an error #740

@ozjongwon

Description

@ozjongwon
(def +conn-pool+ (http/connection-pool {:connection-options {;;:http-versions [:http2 :http1] :proxy-options {:host "127.0.0.1" :port 9050 :protocol :socks5 :connection-timeout (* 5 1000)}} ;;:total-connections 1024 })) @(http/get "https://check.torproject.org" {:pool +conn-pool+}) => 1. Unhandled io.netty.handler.proxy.ProxyConnectException socks5, none, /127.0.0.1:9050 => null, unexpected authMethod: UNACCEPTED(255) Socks5ProxyHandler.java: 140 io.netty.handler.proxy.Socks5ProxyHandler/handleResponse ProxyHandler.java: 260 io.netty.handler.proxy.ProxyHandler/channelRead AbstractChannelHandlerContext.java: 442 io.netty.channel.AbstractChannelHandlerContext/invokeChannelRead AbstractChannelHandlerContext.java: 420 io.netty.channel.AbstractChannelHandlerContext/invokeChannelRead AbstractChannelHandlerContext.java: 412 io.netty.channel.AbstractChannelHandlerContext/fireChannelRead ByteToMessageDecoder.java: 346 io.netty.handler.codec.ByteToMessageDecoder/fireChannelRead ByteToMessageDecoder.java: 333 io.netty.handler.codec.ByteToMessageDecoder/fireChannelRead ReplayingDecoder.java: 349 io.netty.handler.codec.ReplayingDecoder/callDecode ByteToMessageDecoder.java: 290 io.netty.handler.codec.ByteToMessageDecoder/channelRead AbstractChannelHandlerContext.java: 444 io.netty.channel.AbstractChannelHandlerContext/invokeChannelRead AbstractChannelHandlerContext.java: 420 io.netty.channel.AbstractChannelHandlerContext/invokeChannelRead 

(Equivalent?) curl command works.

curl --verbose --proxy socks5://127.0.0.1:9050 https://check.torproject.org
Can anyone point why it happens and how to fix?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions