Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Concurrent fetch #31

Merged
merged 55 commits into from
Aug 20, 2012
Merged

Concurrent fetch #31

merged 55 commits into from
Aug 20, 2012

Conversation

mwhooker
Copy link
Contributor

@mwhooker mwhooker commented Aug 4, 2012

all tests passing.

Please do take the time to do a thorough code review. We can do it together if you prefer. It also might be a good idea to get a third set of eyes on the threading code. Hopefully someone with more experience with them than I do.


msg = self.queue.get(True, timeout)
self._offset = msg.next_offset
return msg.payload
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should either be msg or message throughout

@@ -325,6 +223,7 @@ def connect(self):
"""
self._socket = socket.create_connection((self.host, self.port),
timeout=self.timeout)
self._socket.settimeout(self.timeout)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this the same as the timeout kwarg to create_connection?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup

@tkaemming
Copy link
Contributor

looks pretty good overall, thanks for all your work on this

i don't think there's anything really blocking it from being merged into master at this point but there's some general cleanup we could do — i'm +1 if you want to merge now, or you can clean up from the notes above and we can merge in after — your call

@mwhooker
Copy link
Contributor Author

Thanks @tkaemming for your excellent notes. I think I've covered them in 7127300 and e0ec6ea but I'm rushing so will wait to merge them until I get in.

mwhooker added a commit that referenced this pull request Aug 20, 2012
@mwhooker mwhooker merged commit e0249dc into master Aug 20, 2012
@mwhooker mwhooker removed their assignment Jan 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants