[squid-dev] Assorted (minor) patches for Squid

Amos Jeffries squid3 at treenet.co.nz
Wed Apr 29 11:24:55 UTC 2015


On 29/04/2015 8:29 p.m., Alex wrote:
> Dear Amos Jefferies,
> 
> Thanks for accepting my recent patches for Squid. Here are several other
> minor patches -- if I should send these to a Squid mailing list, please let
> me know.
> 
> Thanks,
> Alex Dowad
> 

Hi Alex,

In future please send patches individually to the squid-dev mailing list
with "[PATCH]" prefix on the subject line. That way the other core
developers can audit if they wish, debate decisions, or more quickly
merge patches they feel are urgent.

Our formal patch submission process is outlined at:
 <http://wiki.squid-cache.org/MergeProcedure>


I am taking these in with a few modifications mentioned below.

* 1/7: adds an extra if-condition, despite being small it is one more
slice out of performance on each read. Not checking also ensures that
xerrno is initialized to 0 from errno (or at worst refects errno
accurately).

- I'm accepting only the documentation change in typedefs.h with slight
modification to doxygen format.


* 2/7: the patch is incomplete. Correct use of errno sets it to 0 before
calling the monitored function.
 - our previous use of xstrerror() inside debugs() has proven to present
incorrect errno details. We need to be using xstrerr(N) instead now.
 - there are also other setsockopt() later in the function which were
using errno incorrectly.

In light of these 2/7 through 5/7, and the other errno instances. I am
thinking a larger patch updating all those mis-uses at once and
replacing xstrerror() with xstrerr(N) globally is worthwhile.
 Would you be interested in working on that?


* 6/7 and 7/7: the HERE maro is deprecated already and we are requesting
that anyone touching debugs() containing one remove it during the change.

 - accepted with that adjustment


Amos



More information about the squid-dev mailing list