[squid-dev] Introducing myself to Squid Devs

Shailesh Vashishth shavashishth at gmail.com
Fri Dec 27 06:07:03 UTC 2024


Hi
I am trying to do the following ToDo in store_client.cc.
// TODO: Convert store_client into AsyncJob; make this call asynchronous
CodeContext::Reset(sc->_callback.codeContext);
debugs(90, 3, "checking client #" << i);
storeClientCopy2(this, sc);

Please help me understand why we need to make this call asynchronous?

Regards
Shailesh


On Sun, Oct 27, 2024 at 7:45 PM Shailesh Vashishth <shavashishth at gmail.com>
wrote:

> Hi
> There is another very small ToDo that I would like take up --
>
> This is also a very simple and small change -- replacing *Io with
> Store::IoStatus *and removing the *using *statement
>
> Address the following TODO:
> /* TODO: Remove this change-minimizing hack */
> using Io = Store::IoStatus;
> static constexpr Io ioUndecided = Store::ioUndecided;
> static constexpr Io ioReading = Store::ioReading;
> static constexpr Io ioWriting = Store::ioWriting;
> static constexpr Io ioDone = Store::ioDone;
>
>
> Regards
> Shailesh
>
> On Sat, Oct 26, 2024 at 12:54 AM Shailesh Vashishth <
> shavashishth at gmail.com> wrote:
>
>> Hi
>> I would like to take up another Todo item that is listed here --
>> https://github.com/measurement-factory/squid-notes/blob/start/todos.md
>>
>> I would like to pick this item : I think this requires very small change,
>> where we just print *name_len *on the *stdout *using the custom function
>> for printing debug logs.
>>
>>
>>    - Address the following TODO by adding any using Raw::upto(n) which
>>    will limit the size value of passed to PrintHex() and write() inside
>>    Raw::print(). That value is currently size_.
>>
>> if (name_len > 65534) {
>>> /* String must be LESS THAN 64K and it adds a terminating NULL */
>>> // TODO: update this to show proper name_len in Raw markup, but not
>>> print all that
>>> debugs(55, 2, "ignoring huge header field (" << Raw("field_start",
>>> field_start, 100) << "...)");
>>>
>>
>>
>> My current PR (*https://github.com/squid-cache/squid/pull/1921
>> <https://github.com/squid-cache/squid/pull/1921>*) has succeeded all
>> Pipeline stages, only your approval is remaining.
>>
>> Regards
>> Shailesh
>>
>> On Wed, Oct 23, 2024 at 12:30 AM Shailesh Vashishth <
>> shavashishth at gmail.com> wrote:
>>
>>> Hi
>>> I have made a change to a math expression in store_client.cc and raised
>>> the following pull request.
>>>
>>> if (curlen > expectlen*(Config.quickAbort.pct/100.0)) {
>>> debugs(90, 3, "quick-abort? NO past point of no return");
>>> return false;
>>> }
>>>
>>> I have also ran the test-build.sh (suggested in Submissions Checklist)
>>> and it passed all test cases.
>>>
>>> Please review the following pull request -
>>> https://github.com/squid-cache/squid/pull/1921
>>>
>>> Regards
>>> Shailesh
>>>
>>> On Sat, Oct 5, 2024 at 1:27 PM Shailesh Vashishth <
>>> shavashishth at gmail.com> wrote:
>>>
>>>> Hi Alex,
>>>> I read your hint and made changes accordingly, it didn't go to spam
>>>> this time. I was going through the Squid Docs, on how to submit PR and do
>>>> those pre-merge self tests (Submission Checklist).
>>>>
>>>> I will do the steps given in the Submission Checklist and submit a PR
>>>> in a day or two.
>>>>
>>>> Thank you for helping me with getting started and joining the project.
>>>>
>>>> Regards
>>>> Shailesh
>>>>
>>>>
>>>> On Fri, Oct 4, 2024 at 6:53 PM Alex Rousskov <
>>>> rousskov at measurement-factory.com> wrote:
>>>>
>>>>> On 2024-10-03 15:49, Shailesh Vashishth wrote:
>>>>>
>>>>> > I would like to contribute to the Squid Project and I have picked
>>>>> one
>>>>> > small task out of the ToDos  for myself.
>>>>>
>>>>>
>>>>> Hello Shailesh,
>>>>>
>>>>>      Welcome to the Project and good luck with your first task! If you
>>>>> need any help, please do not hesitate to ask on this mailing list or
>>>>> to
>>>>> post a draft pull request for discussion on GitHub:
>>>>> https://wiki.squid-cache.org/MergeProcedure
>>>>>
>>>>> BTW, I have also emailed you a few hints regarding the code below when
>>>>> you asked about it privately -- check your spam folder if you have not
>>>>> seen my response dated September 30, 2024...
>>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Alex.
>>>>>
>>>>>
>>>>> >     *// XXX: This is absurd! TODO: For positives, "a/(b/c) > d" is
>>>>> "a*c
>>>>> >      > b*d".
>>>>> >     **if (expectlen < 100) {
>>>>> >     **   debugs(90, 3, "quick-abort? NO avoid FPE");
>>>>> >     **   return false;
>>>>> >     **}*
>>>>> >
>>>>> >     */_if ((curlen / (expectlen / 100)) > (Config.quickAbort.pct)) {
>>>>> >     _/**   debugs(90, 3, "quick-abort? NO past point of no return");
>>>>> >     **   return false;
>>>>> >     **}*
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20241227/f6c54be8/attachment.htm>


More information about the squid-dev mailing list