If we don't want timeouts we must set the socket's timeout to None - #281
Open
thedrow wants to merge 1 commit into
Open
If we don't want timeouts we must set the socket's timeout to None#281thedrow wants to merge 1 commit into
thedrow wants to merge 1 commit into
Conversation
…t set the socket's timeout to None See https://docs.python.org/3/library/socket.html#socket.socket.settimeout. This commit was triggered by celery/celery#4876 (comment). It could fix the issue as well.
Contributor
Author
|
With this change, the integration tests hang on Travis. @matusvalo Any idea why? |
Member
|
@thedrow, see my comments in the patch. The problem is that when you are using publisher confirm, the publisher checks before publishing if broker sent a message to him. This relies on |
Contributor
Author
|
So what should we do to fix this issue exactly? |
matusvalo
requested changes
Jul 4, 2019
Member
There was a problem hiding this comment.
| @contextmanager | ||
| def having_timeout(self, timeout): | ||
| if timeout is None: | ||
| if timeout is None or timeout == 0: |
Member
There was a problem hiding this comment.
This line of code breaks the following:
Lines 1764 to 1769 in b36bf88
Member
There was a problem hiding this comment.
The def having_timeout() method should be not changed because:
- it is internal API
- we are using it as mentioned above.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See https://docs.python.org/3/library/socket.html#socket.socket.settimeout.
This commit was triggered by celery/celery#4876 (comment).
It could fix the issue as well.