mozilla-services/vaurien — pull request #33 by patandia (2014-01-31 00:57:35+00:00)
Title: Bug fix and typo

Hi,

I came across two issues while using vaurien.

First, given the following configuration file

[vaurien]
proxy = localhost:6432
backend = localhost:5432
protocol = tcp
stay_connected = true

[protocol:tcp]
keep_alive = true
(...)

The protocol specific options of the [protocol:tcp] section were ignored.
The proposed fix consists in updating the handler's settings using the appropriate section prefix right after the use of command line provided protocol arguments.

Second, while investigating the first issue, i have noticed that the use of get_prefixed_sections in proxy.py differs from its declaration found in util.py (wrong parameter order regarding the prefix and the logger).