-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Various changes/fixes #88
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
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
60ccb4d
Allow customizing socket timeouts.
rdiomar 0f2b08d
Read the correct number of bytes from kafka.
rdiomar 8c8ca5f
* Guarantee reading the expected number of bytes from the socket ever…
rdiomar 4d6bafa
Allow None timeout in FetchContext even if block is False
rdiomar 5dd8d81
Reset consumer fields to original values rather than defaults in Fetc…
rdiomar 0c7cf25
SimpleConsumer flow changes:
rdiomar b68523f
Remove SimpleConsumer queue size limit since it can cause the iterator
rdiomar 450faeb
Add buffer_size param description to docstring
rdiomar dc4198b
Add iter_timeout option to SimpleConsumer. If not None, it causes the…
rdiomar c1ba510
Add comments and maintain 80 character line limit
rdiomar 93b6579
Add and fix comments to protocol.py
rdiomar 009ed92
Add note about questionable error handling while decoding messages.
rdiomar b6b1ba0
Fix unit tests.
rdiomar 99b561d
Style fix for imports
rdiomar 81d001b
Fix seek offset deltas
rdiomar d1e4fd2
Raise a ConnectionError when a socket.error is raised when receiving …
rdiomar 8540f1f
Fix client error handling
rdiomar bbd90e1
Add a limit to fetch buffer size, and actually retry requests when fe…
rdiomar 6d2b28a
Handle starting/stopping Kafka brokers that are already started/stopp…
rdiomar 5721854
Remove unnecessary brackets
rdiomar 59f884c
Fix client and consumer params in integration tests
rdiomar d736d0b
Add tests for limited and unlimited consumer max_buffer_size
rdiomar c11ff04
Make kafka brokers per-test in failover integration tests
rdiomar e0c45ff
Add object type and ID to message prefix in fixtures output for easie…
rdiomar e5a5477
Use the same timeout when reinitializing a connection
rdiomar b4c20ac
Handle dirty flag in conn.recv()
rdiomar 2077653
Remove unnecessary method
rdiomar f333e91
Skip snappy/gzip tests if they're not available
rdiomar 9cbe45d
Some cleanup and easier to read test fixture output
rdiomar 317c848
Change BufferUnderflowError to ConnectionError in conn._read_bytes()
rdiomar a0c7141
Change log.error() back to log.exception()
rdiomar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stylistically, I think that this check should probably move into recv instead of
_read_bytes(i.e. give this method less responsibility)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I put it here is because it's right before calling
self._socket.recv(), just as it is is right before callingself._socket.sendall()insend().