{"action":"created","issue":{"url":"https://api.github.com/repos/twitter/finagle/issues/523","repository_url":"https://api.github.com/repos/twitter/finagle","labels_url":"https://api.github.com/repos/twitter/finagle/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/twitter/finagle/issues/523/comments","events_url":"https://api.github.com/repos/twitter/finagle/issues/523/events","html_url":"https://github.com/twitter/finagle/issues/523","id":163836675,"number":523,"title":"DNS Resolving should be deferred to proxy when using HTTP proxy","user":{"login":"spockz","id":54579,"avatar_url":"https://avatars.githubusercontent.com/u/54579?v=3","gravatar_id":"","url":"https://api.github.com/users/spockz","html_url":"https://github.com/spockz","followers_url":"https://api.github.com/users/spockz/followers","following_url":"https://api.github.com/users/spockz/following{/other_user}","gists_url":"https://api.github.com/users/spockz/gists{/gist_id}","starred_url":"https://api.github.com/users/spockz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spockz/subscriptions","organizations_url":"https://api.github.com/users/spockz/orgs","repos_url":"https://api.github.com/users/spockz/repos","events_url":"https://api.github.com/users/spockz/events{/privacy}","received_events_url":"https://api.github.com/users/spockz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twitter/finagle/labels/Community","name":"Community","color":"0052cc"},{"url":"https://api.github.com/repos/twitter/finagle/labels/Starter","name":"Starter","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-07-05T12:15:26Z","updated_at":"2016-09-12T22:18:39Z","closed_at":null,"body":"We are using a proxy to connect to APIs outside our network. In our case our local machine cannot resolve the DNS hostname and has to defer the DNS resolving to the proxy.\r\n\r\nIt appears that it is not possible to do so. When creating an `InetSocketAddress` with the hostname, Finagle fails with the exception below.\r\n\r\nHow should Finagle be configured? We current use the Transporter.HttpProxy configuration. (`client.configured(new Transporter.HttpProxy(getProxyAddress(), getProxyCredentials()).mk());`).\r\n\r\n```\r\nCaused by: java.nio.channels.UnresolvedAddressException\r\n        at sun.nio.ch.Net.checkAddress(Net.java:107)\r\n        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:649)\r\n        at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:108)\r\n        at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:70)\r\n        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)\r\n        at org.jboss.netty.handler.ssl.SslHandler.handleDownstream(SslHandler.java:521)\r\n        at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)\r\n        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)\r\n        at org.jboss.netty.channel.SimpleChannelHandler.connectRequested(SimpleChannelHandler.java:306)\r\n        at com.twitter.finagle.netty3.ssl.SslConnectHandler.connectRequested(SslConnectHandler.scala:109) \r\n```"},"comment":{"url":"https://api.github.com/repos/twitter/finagle/issues/comments/246513272","html_url":"https://github.com/twitter/finagle/issues/523#issuecomment-246513272","issue_url":"https://api.github.com/repos/twitter/finagle/issues/523","id":246513272,"user":{"login":"vkostyukov","id":1098539,"avatar_url":"https://avatars.githubusercontent.com/u/1098539?v=3","gravatar_id":"","url":"https://api.github.com/users/vkostyukov","html_url":"https://github.com/vkostyukov","followers_url":"https://api.github.com/users/vkostyukov/followers","following_url":"https://api.github.com/users/vkostyukov/following{/other_user}","gists_url":"https://api.github.com/users/vkostyukov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkostyukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkostyukov/subscriptions","organizations_url":"https://api.github.com/users/vkostyukov/orgs","repos_url":"https://api.github.com/users/vkostyukov/repos","events_url":"https://api.github.com/users/vkostyukov/events{/privacy}","received_events_url":"https://api.github.com/users/vkostyukov/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T22:18:39Z","updated_at":"2016-09-12T22:18:39Z","body":"Also if you don't use TLS/SSL you don't actually need TCP tunneling (don't need N4) and can simply send HTTP messages with proper `Host` header to your proxy server."}}
{"actor":{"display_login":"vkostyukov"}}