{"action":"created","issue":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/1266","repository_url":"https://api.github.com/repos/edenhill/librdkafka","labels_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1266/labels{/name}","comments_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1266/comments","events_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1266/events","html_url":"https://github.com/edenhill/librdkafka/issues/1266","id":236530645,"number":1266,"title":"How to deal with the connection timeout","user":{"login":"CoderOverflow","id":29338660,"avatar_url":"https://avatars1.githubusercontent.com/u/29338660?v=3","gravatar_id":"","url":"https://api.github.com/users/CoderOverflow","html_url":"https://github.com/CoderOverflow","followers_url":"https://api.github.com/users/CoderOverflow/followers","following_url":"https://api.github.com/users/CoderOverflow/following{/other_user}","gists_url":"https://api.github.com/users/CoderOverflow/gists{/gist_id}","starred_url":"https://api.github.com/users/CoderOverflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoderOverflow/subscriptions","organizations_url":"https://api.github.com/users/CoderOverflow/orgs","repos_url":"https://api.github.com/users/CoderOverflow/repos","events_url":"https://api.github.com/users/CoderOverflow/events{/privacy}","received_events_url":"https://api.github.com/users/CoderOverflow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-16T16:22:09Z","updated_at":"2017-06-16T17:27:35Z","closed_at":null,"body":"Description\r\n===========\r\n![20170617000827](https://user-images.githubusercontent.com/29338660/27234927-67f0e2ec-52f1-11e7-960e-62b12ac3261b.png)\r\n\r\nI've read https://github.com/edenhill/librdkafka/issues/437 \r\n\r\nI'm trying to write an ProducerPool to manage the long life object of several producers.\r\nI have a question about how to deal with the connection timeout.\r\n\r\nshould I get the produce's return value when it fail to do and then release the current producer and \r\ncreate a new one again?\r\nor Should I adjust the value of connections.max.idle.ms and create a thread to refresh the connection?\r\n\r\nWhich way do you recommend to use.\r\n\r\nThanks.\r\n\r\n\r\n\r\n\r\n\r\n\r\nHow to reproduce\r\n================\r\n\r\n\r\n\r\n\r\nChecklist\r\n=========\r\nPlease provide the following information:\r\n\r\n - [ ] librdkafka version (release number or git tag):\r\n - [ ] Apache Kafka version: \r\n - [ ] librdkafka client configuration:\r\n - [ ] Operating system:\r\n - [ ] Using the legacy Consumer\r\n - [ ] Using the high-level KafkaConsumer\r\n - [ ] Provide logs (with `debug=..` as necessary) from librdkafka\r\n - [ ] Provide broker log excerpts\r\n - [ ] Critical issue\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/comments/309085928","html_url":"https://github.com/edenhill/librdkafka/issues/1266#issuecomment-309085928","issue_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1266","id":309085928,"user":{"login":"edenhill","id":524990,"avatar_url":"https://avatars3.githubusercontent.com/u/524990?v=3","gravatar_id":"","url":"https://api.github.com/users/edenhill","html_url":"https://github.com/edenhill","followers_url":"https://api.github.com/users/edenhill/followers","following_url":"https://api.github.com/users/edenhill/following{/other_user}","gists_url":"https://api.github.com/users/edenhill/gists{/gist_id}","starred_url":"https://api.github.com/users/edenhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenhill/subscriptions","organizations_url":"https://api.github.com/users/edenhill/orgs","repos_url":"https://api.github.com/users/edenhill/repos","events_url":"https://api.github.com/users/edenhill/events{/privacy}","received_events_url":"https://api.github.com/users/edenhill/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T17:27:35Z","updated_at":"2017-06-16T17:27:35Z","body":"start with enabling debug to see what is going on: `debug=broker,topic,metadata`\r\n"}}
{"actor":{"display_login":"edenhill"}}