Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call the producer.close() in a while loop will case an Error #1090

Closed
CheongHoo opened this issue Apr 27, 2017 · 1 comment
Closed

Call the producer.close() in a while loop will case an Error #1090

CheongHoo opened this issue Apr 27, 2017 · 1 comment

Comments

@CheongHoo
Copy link

CheongHoo commented Apr 27, 2017

my code is like this:

while True:
    producer = KafkaProducer(bootstrap_servers=KAFKA_SERVER)
    producer.send('test', b'xxx')
    producer.close()

it will cause a error like bellow:
error: [Errono 9] Bad file descriptor
point to the line
if self._wake_w.send(b'x') !=1 in the client_async.py

@ryanjmccall
Copy link

addressed in the latest release 1.3.4 cf #1069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants