Skip to content

Make feedbag threadsafe.#1

Merged
dwillis merged 1 commit intodwillis:masterfrom
mje113:master
Jun 30, 2013
Merged

Make feedbag threadsafe.#1
dwillis merged 1 commit intodwillis:masterfrom
mje113:master

Conversation

@mje113
Copy link

@mje113 mje113 commented Jun 30, 2013

Unsure why, but it looks like the original feedbag was using global vars for $feeds and $base_uri, rendering the whole gem unsafe if multiple threads are using it concurrently. This patch preserves the API, but:

  • Promotes Feedbag module to a class
  • Moves the bulk of its methods into instance methods
  • Removes global vars and replaces them with instance vars.

dwillis added a commit that referenced this pull request Jun 30, 2013
Make feedbag threadsafe.
@dwillis dwillis merged commit c018ce8 into dwillis:master Jun 30, 2013
fudanchii pushed a commit to fudanchii/feedbag that referenced this pull request Feb 6, 2016
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