{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-perl/issues/70","labels_url":"https://api.github.com/repos/elastic/elasticsearch-perl/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-perl/issues/70/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-perl/issues/70/events","html_url":"https://github.com/elastic/elasticsearch-perl/issues/70","id":89592657,"number":70,"title":"Nodes with inaccessible http.host and connection sniffing","user":{"login":"jimmyjones2","id":2991805,"avatar_url":"https://avatars.githubusercontent.com/u/2991805?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmyjones2","html_url":"https://github.com/jimmyjones2","followers_url":"https://api.github.com/users/jimmyjones2/followers","following_url":"https://api.github.com/users/jimmyjones2/following{/other_user}","gists_url":"https://api.github.com/users/jimmyjones2/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyjones2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyjones2/subscriptions","organizations_url":"https://api.github.com/users/jimmyjones2/orgs","repos_url":"https://api.github.com/users/jimmyjones2/repos","events_url":"https://api.github.com/users/jimmyjones2/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyjones2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-19T15:30:51Z","updated_at":"2015-06-20T10:18:15Z","closed_at":"2015-06-19T20:43:35Z","body":"I've setup a client node on my Kibana server, bound to loopback for security, but ever since got lots of errors from my perl script doing the data ingest. I added a network interface on the private cluster network to the Kibana server, alongside its normal interface. However it seems that the Perl client, connected to the cluster network, gets this inaccessible IP when sniffing, tries to connect to it at some point and bombs out.\r\n```yaml\r\nnode.master: false\r\nnode.data: false\r\nnetwork.host: \"10.0.0.4\"\r\nhttp.host: \"127.0.0.1\"\r\n```\r\nRepro:\r\n```perl\r\n#!/usr/bin/perl\r\n\r\nuse Search::Elasticsearch;\r\n\r\nmy $es = Search::Elasticsearch->new( cxn_pool => 'Sniff', nodes => 'localhost:9200' );\r\nfor (1..10) {\r\n  $es->index( index => 'test', type => 'test', body => { foo => 'bar' } );\r\n}\r\n```\r\nAs a workaround I can remove the http.host and leave it on the private interface, but I don't really want indexing traffic going through my underpowered web server! Shouldn't the Perl client ignore the inaccessible address rather than bombing out?"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-perl/issues/comments/113741182","html_url":"https://github.com/elastic/elasticsearch-perl/issues/70#issuecomment-113741182","issue_url":"https://api.github.com/repos/elastic/elasticsearch-perl/issues/70","id":113741182,"user":{"login":"clintongormley","id":56599,"avatar_url":"https://avatars.githubusercontent.com/u/56599?v=3","gravatar_id":"","url":"https://api.github.com/users/clintongormley","html_url":"https://github.com/clintongormley","followers_url":"https://api.github.com/users/clintongormley/followers","following_url":"https://api.github.com/users/clintongormley/following{/other_user}","gists_url":"https://api.github.com/users/clintongormley/gists{/gist_id}","starred_url":"https://api.github.com/users/clintongormley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintongormley/subscriptions","organizations_url":"https://api.github.com/users/clintongormley/orgs","repos_url":"https://api.github.com/users/clintongormley/repos","events_url":"https://api.github.com/users/clintongormley/events{/privacy}","received_events_url":"https://api.github.com/users/clintongormley/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T10:18:15Z","updated_at":"2015-06-20T10:18:15Z","body":"Also see https://github.com/chansen/p5-http-tiny/issues/52"}}