
alvaro at octality
Oct 5, 2011, 6:16 AM
Post #2 of 2
(141 views)
Permalink
|
|
Re: [PATCH] Support for multiple IP in Sources
[In reply to]
|
|
Hello there! 2011/10/4 Antonio Prez <aperez [at] skarcha> > > The attached patch is to make Cherokee to try all the IPs that > resolves the domain name, in this case: "localhost". > > More likely is that lvaro will find a better aproach, but well, here > is the result of my work debugging and looking for a solution. > The idea behind the patch is very good. Good stuff!! Having said that, I'm afraid we cannot apply the patch as it is right now. Basically, the "static" variable works well for a single source, but it would mess things up when using more than one. Bear in mind that it'd be shared among different sources. Luckily, the fix is quite straightforward. If we added that variable to the cherokee_source_t structure, we would get the code to work almost in the same way, while we ensure that the code is re-entrant. -- Greetings, alo http://www.octality.com/
|