{"action":"closed","issue":{"url":"https://api.github.com/repos/gocql/gocql/issues/388","labels_url":"https://api.github.com/repos/gocql/gocql/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/gocql/gocql/issues/388/comments","events_url":"https://api.github.com/repos/gocql/gocql/issues/388/events","html_url":"https://github.com/gocql/gocql/issues/388","id":74098489,"number":388,"title":"Conn.exec potentially blocks forever","user":{"login":"nemothekid","id":940094,"avatar_url":"https://avatars.githubusercontent.com/u/940094?v=3","gravatar_id":"","url":"https://api.github.com/users/nemothekid","html_url":"https://github.com/nemothekid","followers_url":"https://api.github.com/users/nemothekid/followers","following_url":"https://api.github.com/users/nemothekid/following{/other_user}","gists_url":"https://api.github.com/users/nemothekid/gists{/gist_id}","starred_url":"https://api.github.com/users/nemothekid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemothekid/subscriptions","organizations_url":"https://api.github.com/users/nemothekid/orgs","repos_url":"https://api.github.com/users/nemothekid/repos","events_url":"https://api.github.com/users/nemothekid/events{/privacy}","received_events_url":"https://api.github.com/users/nemothekid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-07T19:25:32Z","updated_at":"2015-05-09T00:42:15Z","closed_at":"2015-05-09T00:42:15Z","body":"I'm looking through the protocol to see why this might happen, but `Conn.exec` can block potentially forever if, for whatever reason, a request to cassandra fails.\r\n\r\nI have processes that can get blocked on [conn.exec:368](https://github.com/gocql/gocql/blob/5e2ead955768693323babcbc4daa624b110159d2/conn.go#L368) for as long as 20 hours.\r\n\r\nI haven't debugged it fully yet but it seems the `Conn.recv()` never gets any more data on that stream. \r\n"}}