{"action":"created","issue":{"url":"https://api.github.com/repos/gatling/gatling/issues/2973","repository_url":"https://api.github.com/repos/gatling/gatling","labels_url":"https://api.github.com/repos/gatling/gatling/issues/2973/labels{/name}","comments_url":"https://api.github.com/repos/gatling/gatling/issues/2973/comments","events_url":"https://api.github.com/repos/gatling/gatling/issues/2973/events","html_url":"https://github.com/gatling/gatling/issues/2973","id":149177419,"number":2973,"title":"HTTP: test hanging","user":{"login":"rebrowning","id":11467333,"avatar_url":"https://avatars.githubusercontent.com/u/11467333?v=3","gravatar_id":"","url":"https://api.github.com/users/rebrowning","html_url":"https://github.com/rebrowning","followers_url":"https://api.github.com/users/rebrowning/followers","following_url":"https://api.github.com/users/rebrowning/following{/other_user}","gists_url":"https://api.github.com/users/rebrowning/gists{/gist_id}","starred_url":"https://api.github.com/users/rebrowning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebrowning/subscriptions","organizations_url":"https://api.github.com/users/rebrowning/orgs","repos_url":"https://api.github.com/users/rebrowning/repos","events_url":"https://api.github.com/users/rebrowning/events{/privacy}","received_events_url":"https://api.github.com/users/rebrowning/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-18T15:03:48Z","updated_at":"2016-05-09T07:47:21Z","closed_at":null,"body":"Currently when I run the following test (both the machine running the test, and the machine I'm testing against are in GCE, at the same location) the \"active\" count will hang indefinitely, causing the test to never complete.\r\n\r\n```scala\r\nimport io.gatling.core.Predef._\r\nimport io.gatling.http.Predef._\r\nimport scala.concurrent.duration._\r\n\r\nclass SingleInstance extends Simulation {\r\n  val instance = \"sandbox-search.vadio.com/v1.0\"\r\n  val httpConf = http\r\n    .baseURL(\"https://\"+instance)\r\n    .acceptHeader(\"*/*\")\r\n    .doNotTrackHeader(\"1\")\r\n    .acceptLanguageHeader(\"en-US,en;q=0.8\")\r\n    .acceptEncodingHeader(\"gzip, deflate\")\r\n    .userAgentHeader(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36\")\r\n\r\n  val sos = scenario(s\"Full Chain\")\r\n    .feed(csv(\"onlygoodsongs.csv\").random.circular) // This is a csv of around 10k artist/title combinations\r\n    .exec(http(\"full chain\").get(\"/video?artist=${artist}&title=${title}&country=US&api_key=ltkeyfordoingthingssometimes\")\r\n      .transformResponse {\r\n        case resp if resp.statusCode.get == 200 =>\r\n          resp\r\n        case resp =>\r\n          println(\"Response Code: \" + resp.statusCode.get.toString + \"\\n\" +\r\n            \"Response Request URL: \" + resp.request.getUrl + \"\\n\" +\r\n            \"Response Body: \" + resp.body.string + \"\\n\" +\r\n            \"Response Headers: \" + resp.headers.toString + \"\\n\")\r\n          resp\r\n      }\r\n      .check(status.is(200))\r\n      .check(regex(\"videoId\").find(0).exists)\r\n    )\r\n\r\n  setUp(\r\n    sos.inject(constantUsersPerSec(400) during(60 seconds) randomized)\r\n  ).protocols(httpConf)\r\n}\r\n```\r\n\r\nSample set from onlygoodsongs.csv\r\n```\r\nartist,title\r\nSlipknot,Duality\r\nSlipknot,Wait and Bleed\r\nSlipknot,Vermillion\r\nChimaira,Empire\r\nChimaira,Resurrection\r\nChimaira,Pure Hatred\r\nHeaven Shall Burn,Enziet\r\nHeaven Shall Burn,Hunters Will Be Hunted\r\nAmon Amarth,Twilight of the Thunder God\r\nWhite Zombie,Thunder Kiss '65\r\nAlice In Chains,Rooster\r\nWhite Zombie,More Human Than Human\r\nBring Me The Horizon,Sleepwalking\r\nBring Me The Horizon,Drown\r\nBring Me The Horizon,Go To Hell For Heaven's Sake\r\nPierce The Veil,King for a Day\r\nSleeping With Sirens,If You Can't Hang\r\nBring Me The Horizon,Shadow Moses\r\nBring Me The Horizon,Can You Feel My Heart\r\nParkway Drive,Vice Grip\r\nParkway Drive,Crushed\r\nFive Finger Death Punch,Wrong Side Of Heaven\r\nPierce The Veil,Bulls In The Bronx\r\nA Day To Remember,All I Want\r\nTaylor Swift,I Knew You Were Trouble\r\nPost Malone,White Iverson\r\nAmon Amarth,First Kill\r\nRobin Schulz,Sugar\r\nSlipknot,Snuff\r\nSlipknot,The Devil In I\r\nSlipknot,Dead Memories\r\nSlipknot,Killpop\r\nFall Out Boy,Irresistible\r\nFall Out Boy,Uma Thurman\r\nFall Out Boy,Centuries\r\nFall Out Boy,Immortals\r\nCaliban,We Are The Many\r\nInsomnium,While We Sleep\r\nCaliban,Devil's Night\r\nArch Enemy,You Will Know My Name\r\nDrake,Hotline Bling\r\nSia,Alive\r\nAdele,Hello\r\nOwl City,Fireflies\r\nBring Me The Horizon,Throne\r\nBorn of Osiris,Bow Down\r\nBullet For My Valentine,Worthless\r\nMudvayne,Dig\r\nMudvayne,Death Blooms\r\nMudvayne,Forget to Remember\r\n```\r\n\r\nFor the above test I may end up with the following test message \r\n```\r\n================================================================================\r\n2016-04-13 08:08:25                                         200s elapsed\r\n---- Full Chain test -----------------------------------------------------------\r\n[##############################################################------------] 84%\r\n      waiting: 0      / active: 3728   / done:20362 \r\n---- Requests ------------------------------------------------------------------\r\n Global                                                   (OK=20362  KO=0     )\r\n================================================================================\r\n```\r\n\r\nAs you can see the expected 60 second test has gone on for 200 seconds at this point, the \"active\" number is the same at 200 seconds as it was at 60 seconds.\r\n\r\nmy reference.conf is \r\n```\r\ngatling {\r\n  http {\r\n    ahc {\r\n      requestTimeout=7000\r\n      maxRetry=0\r\n      sslSessionTimeout=7000\r\n    }\r\n  }\r\n  data {\r\n    noActivityTimeout=5\r\n  }\r\n}\r\n```\r\n\r\nI have tried adding `-Djava.net.preferIPv4Stack=true`, but it doesn't remedy the situation.\r\n\r\nOriginal stackoverflow post: https://stackoverflow.com/questions/36602870/force-gatling-io-test-to-fail-connections-after-a-certain-duration\r\n\r\nIf there's anything I can do to help, let me know."},"comment":{"url":"https://api.github.com/repos/gatling/gatling/issues/comments/217797509","html_url":"https://github.com/gatling/gatling/issues/2973#issuecomment-217797509","issue_url":"https://api.github.com/repos/gatling/gatling/issues/2973","id":217797509,"user":{"login":"slandelle","id":849197,"avatar_url":"https://avatars.githubusercontent.com/u/849197?v=3","gravatar_id":"","url":"https://api.github.com/users/slandelle","html_url":"https://github.com/slandelle","followers_url":"https://api.github.com/users/slandelle/followers","following_url":"https://api.github.com/users/slandelle/following{/other_user}","gists_url":"https://api.github.com/users/slandelle/gists{/gist_id}","starred_url":"https://api.github.com/users/slandelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slandelle/subscriptions","organizations_url":"https://api.github.com/users/slandelle/orgs","repos_url":"https://api.github.com/users/slandelle/repos","events_url":"https://api.github.com/users/slandelle/events{/privacy}","received_events_url":"https://api.github.com/users/slandelle/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T07:47:21Z","updated_at":"2016-05-09T07:47:21Z","body":"I could reproduce. Investigating atm."}}