{"action":"created","issue":{"url":"https://api.github.com/repos/vcr/vcr/issues/482","labels_url":"https://api.github.com/repos/vcr/vcr/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/vcr/vcr/issues/482/comments","events_url":"https://api.github.com/repos/vcr/vcr/issues/482/events","html_url":"https://github.com/vcr/vcr/issues/482","id":65456337,"number":482,"title":"Using webmock, net_http, and savon, need to toggle WebMock::Config.net_http_connect_on_start","user":{"login":"pduey","id":514776,"avatar_url":"https://avatars.githubusercontent.com/u/514776?v=3","gravatar_id":"","url":"https://api.github.com/users/pduey","html_url":"https://github.com/pduey","followers_url":"https://api.github.com/users/pduey/followers","following_url":"https://api.github.com/users/pduey/following{/other_user}","gists_url":"https://api.github.com/users/pduey/gists{/gist_id}","starred_url":"https://api.github.com/users/pduey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pduey/subscriptions","organizations_url":"https://api.github.com/users/pduey/orgs","repos_url":"https://api.github.com/users/pduey/repos","events_url":"https://api.github.com/users/pduey/events{/privacy}","received_events_url":"https://api.github.com/users/pduey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vcr/vcr/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"krainboltgreene","id":334809,"avatar_url":"https://avatars.githubusercontent.com/u/334809?v=3","gravatar_id":"","url":"https://api.github.com/users/krainboltgreene","html_url":"https://github.com/krainboltgreene","followers_url":"https://api.github.com/users/krainboltgreene/followers","following_url":"https://api.github.com/users/krainboltgreene/following{/other_user}","gists_url":"https://api.github.com/users/krainboltgreene/gists{/gist_id}","starred_url":"https://api.github.com/users/krainboltgreene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krainboltgreene/subscriptions","organizations_url":"https://api.github.com/users/krainboltgreene/orgs","repos_url":"https://api.github.com/users/krainboltgreene/repos","events_url":"https://api.github.com/users/krainboltgreene/events{/privacy}","received_events_url":"https://api.github.com/users/krainboltgreene/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-03-31T13:52:28Z","updated_at":"2016-01-25T14:57:27Z","closed_at":null,"body":"I'm using savon as a SOAP adapter with httpi, net_http, and rubyntlm. For the test env I'm using webmock. Webmock has one shortcoming described [here](https://github.com/bblimke/webmock#connecting-on-nethttpstart)\r\n\r\nWhen recording cassettes, in order for the NTLM negotiation to succeed, I need WebMock::Config#net_http_connect_on_start to return **true**. \r\n\r\nBut, when replaying cassettes, I need WebMock::Config#net_http_connect_on_start to return **false**. Otherwise, webmock will try to connect anyway, even though the real HTTP interactions get replayed by VCR. This slows down testing, and worse, if I'm disconnected, the tests fail with SocketError: getaddrinfo: nodename nor servname provided, or not known.\r\n\r\nI'm not sure what the best solution is, but I'm thinking it could be to add a configuration value in VCR that will automatically toggle this value depending on if the cassette is being recorded or replayed. For example, `config.webmock_toggle_connect_on_start`."},"comment":{"url":"https://api.github.com/repos/vcr/vcr/issues/comments/174532318","html_url":"https://github.com/vcr/vcr/issues/482#issuecomment-174532318","issue_url":"https://api.github.com/repos/vcr/vcr/issues/482","id":174532318,"user":{"login":"davidguthu","id":535749,"avatar_url":"https://avatars.githubusercontent.com/u/535749?v=3","gravatar_id":"","url":"https://api.github.com/users/davidguthu","html_url":"https://github.com/davidguthu","followers_url":"https://api.github.com/users/davidguthu/followers","following_url":"https://api.github.com/users/davidguthu/following{/other_user}","gists_url":"https://api.github.com/users/davidguthu/gists{/gist_id}","starred_url":"https://api.github.com/users/davidguthu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidguthu/subscriptions","organizations_url":"https://api.github.com/users/davidguthu/orgs","repos_url":"https://api.github.com/users/davidguthu/repos","events_url":"https://api.github.com/users/davidguthu/events{/privacy}","received_events_url":"https://api.github.com/users/davidguthu/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T14:57:27Z","updated_at":"2016-01-25T14:57:27Z","body":"Has any progress been made on this issue? I'm encountering it also."}}