{"action":"closed","issue":{"url":"https://api.github.com/repos/brendanhay/amazonka/issues/269","repository_url":"https://api.github.com/repos/brendanhay/amazonka","labels_url":"https://api.github.com/repos/brendanhay/amazonka/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/brendanhay/amazonka/issues/269/comments","events_url":"https://api.github.com/repos/brendanhay/amazonka/issues/269/events","html_url":"https://github.com/brendanhay/amazonka/issues/269","id":127311028,"number":269,"title":"TlsExceptionHostPort exceptions with amazonka in stackage","user":{"login":"ck-luminal","id":13006435,"avatar_url":"https://avatars.githubusercontent.com/u/13006435?v=3","gravatar_id":"","url":"https://api.github.com/users/ck-luminal","html_url":"https://github.com/ck-luminal","followers_url":"https://api.github.com/users/ck-luminal/followers","following_url":"https://api.github.com/users/ck-luminal/following{/other_user}","gists_url":"https://api.github.com/users/ck-luminal/gists{/gist_id}","starred_url":"https://api.github.com/users/ck-luminal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ck-luminal/subscriptions","organizations_url":"https://api.github.com/users/ck-luminal/orgs","repos_url":"https://api.github.com/users/ck-luminal/repos","events_url":"https://api.github.com/users/ck-luminal/events{/privacy}","received_events_url":"https://api.github.com/users/ck-luminal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-18T21:05:59Z","updated_at":"2016-03-20T12:20:20Z","closed_at":"2016-03-20T12:20:20Z","body":"Hey Bren!\r\n\r\nI was about to send you a PR for this and then realized I wouldn't be able to. Stackage appears to be using a newer version of `http-conduit` than the version fixed in amazonka's Cabal file. It turns out that version throws an additional type of TLS exception, `TlsExceptionHostPort` that you probably want to retry here as well: https://github.com/brendanhay/amazonka/blob/develop/amazonka/src/Network/AWS/Env.hs#L211 .\r\n\r\nAs an effect, we've seen this go uncaught occasionally:\r\n```\r\nTransportError (TlsExceptionHostPort (HandshakeFailed (Error_Packet_unexpected \"Alert [(AlertLevel_Fatal,BadRecordMac)]\" \" expected: change cipher\")) \"s3.amazonaws.com\" 443)\r\n```\r\n\r\nNot a critical issue for us (since we can declare a different retry handler that catches this), but I figured I'd give you a heads up."}}