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

Refactor libmemcached adapter pooling; adjust timeouts #215

Merged
merged 1 commit into from
Mar 3, 2015

Conversation

ghost
Copy link

@ghost ghost commented Jan 29, 2015

Low priority for v1.6...

  • Restrict MaxConns to 100, and adjust {Recv, Send, Retry}Timeout to match the docs and sample config.
  • Allow specifying "" or "0" as durations to disable timeouts.
  • Disable PollTimeout by default. The 10ms timeout was causing intermittent smoke test failures. This should also take care of some of the timeout issues we were seeing.
  • Replace the run loop with a sync.Cond—partly because it avoids funneling all pool requests and releases through a channel, and partly because I wanted to understand condition variables.

* Restrict `MaxConns` to 100.
* Allow specifying `""` or `"0"` as durations to disable timeouts.
* Adjust `{Recv, Send, Retry}Timeout` to match the docs.
* Disable `PollTimeout` by default. The 10ms timeout was causing
  intermittent smoke test failures.
* Replace the run loop with a `sync.Cond`.
@ghost ghost added this to the v1.6 milestone Jan 29, 2015
@bbangert
Copy link
Member

bbangert commented Mar 3, 2015

r+

bbangert added a commit that referenced this pull request Mar 3, 2015
Refactor libmemcached adapter pooling; adjust timeouts
@bbangert bbangert merged commit f1bd072 into dev Mar 3, 2015
@ghost ghost mentioned this pull request Mar 3, 2015
@ghost ghost deleted the bug/emcee-pooling-timeouts branch March 3, 2015 17:41
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

1 participant