Skip to content

producer: Set exit timeout to 0 for atexit handler to match __del__ #1126

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

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

Ormod
Copy link
Contributor

@Ormod Ormod commented Jun 19, 2017

Hit a problem with pytest hitting the atexit handler and waiting
for close() timeout forever at teardown.

This commit makes atexit close() equivalent to del behavior,
namely using timeout of 0 for close() completion. If you need a
longer timeout you should be setting it explicitly.

Hit a problem with pytest hitting the atexit handler and waiting
for close() timeout forever at teardown.

This commit makes atexit close() equivalent to __del__ behavior,
namely using timeout of 0 for close() completion. If you need a
longer timeout you should be setting it explicitly.
@dpkp
Copy link
Owner

dpkp commented Jun 19, 2017

+1

@dpkp dpkp merged commit b8da199 into dpkp:master Jun 20, 2017
88manpreet pushed a commit to Yelp/kafka-python that referenced this pull request Aug 25, 2017
…pkp#1126)

Hit a problem with pytest hitting the atexit handler and waiting
for close() timeout forever at teardown.

This commit makes atexit close() equivalent to __del__ behavior,
namely using timeout of 0 for close() completion. If you need a
longer timeout you should be setting it explicitly.
88manpreet pushed a commit to Yelp/kafka-python that referenced this pull request Aug 25, 2017
…pkp#1126)

Hit a problem with pytest hitting the atexit handler and waiting
for close() timeout forever at teardown.

This commit makes atexit close() equivalent to __del__ behavior,
namely using timeout of 0 for close() completion. If you need a
longer timeout you should be setting it explicitly.
88manpreet pushed a commit to Yelp/kafka-python that referenced this pull request Oct 6, 2017
…pkp#1126)

Hit a problem with pytest hitting the atexit handler and waiting
for close() timeout forever at teardown.

This commit makes atexit close() equivalent to __del__ behavior,
namely using timeout of 0 for close() completion. If you need a
longer timeout you should be setting it explicitly.
88manpreet pushed a commit to Yelp/kafka-python that referenced this pull request Jul 16, 2018
…pkp#1126)

Hit a problem with pytest hitting the atexit handler and waiting
for close() timeout forever at teardown.

This commit makes atexit close() equivalent to __del__ behavior,
namely using timeout of 0 for close() completion. If you need a
longer timeout you should be setting it explicitly.
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

Successfully merging this pull request may close these issues.

2 participants