Re: [squid-dev] Template methods inside normal classes

2016-10-18 Thread Alex Rousskov
On 10/18/2016 09:52 AM, Christos Tsantilas wrote: > Is it valid to use template methods inside normal classes for squid? Yes (until we learn that some compilers choke on them). IIRC, I even had some patches that use them but perhaps they have not been posted or committed yet. Needless to say,

Re: [squid-dev] Template methods inside normal classes

2016-10-18 Thread Amos Jeffries
On 19/10/2016 4:52 a.m., Christos Tsantilas wrote: > Hi all, > > Is it valid to use template methods inside normal classes for squid? > I know they are working, I am just asking if it is acceptable by squid > policy. We dont have any policy about it that I'm aware of. If it is valid C++ then I

[squid-dev] Template methods inside normal classes

2016-10-18 Thread Christos Tsantilas
Hi all, Is it valid to use template methods inside normal classes for squid? I know they are working, I am just asking if it is acceptable by squid policy. Regards, Christos ___ squid-dev mailing list squid-dev@lists.squid-cache.org

Re: [squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-18 Thread Alex Rousskov
On 10/18/2016 03:44 AM, oleg gv wrote: > nfds=284, so loop ends on 283 and pfds[283] is buggy > I/o module is src/comm/ModPoll.cc, method Comm::DoSelect(int msec) > On stack we see that pfds[SQUID_MAXFD=256], so is less than nfds in loop. > May be malloc nfds? If your maxfd is bigger than

Re: [squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-18 Thread oleg gv
Yeah,mistaken - squid 3.5.22 nfds=284, so loop ends on 283 and pfds[283] is buggy I/o module is src/comm/ModPoll.cc, method Comm::DoSelect(int msec) On stack we see that pfds[SQUID_MAXFD=256], so is less than nfds in loop. May be malloc nfds? 2016-10-18 8:29 GMT+03:00 Amos Jeffries