nano-proxy icon indicating copy to clipboard operation
nano-proxy copied to clipboard

should connect target server synchronously

Open MarkLux opened this issue 5 years ago • 0 comments

the ProxyFrontendHandler#channelActive would try to connect the target server and get a channelFuture, but this code works asynchronously, therefore, when request comes, the channelRead is invoked while the outboundChannel is not ready (in my case, it's state is pending), and the proxy work failed. I rewrite the channelActive with synchronously connecting the target server, it works well.

MarkLux avatar Sep 30 '19 02:09 MarkLux