SemanticSugar/dinerl — pull request #3 by martinrehfeld (2012-08-30 09:01:21+00:00)
Title: Support custom lhttpc options & safer setup call

I wanted to use dinerl with the "regular" esl-lhttpc version, but ran into the problem that only ferd's fork supports the the `{max_connections, n}` option that was hardcoded in the request code of dinerl.

I suggest to offer a `dinerl:setup/4` function that let's the user override the lhttpc options (I left the default options as is when using `dinerl:setup/3`). While working on the setup call, I also added some checks to make sure that setup only starts the periodic timer when the initial `updata_data` actually succeeds.

Please note: the `clientarguments()` returned by a successful call to setup will now contain an additional element with the lhttpc options. If changing the return signature is a problem for you, I can also make it match the original tuple.