Search squid archive

Re: cannot leave empty workers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a problem

The code isSslServer looks for https configuration. If no one found, it will not create /run/shm/ssl_session_cache.shm.

Late, the code somewhere else can not find it, so the process would not start it self.

I am not clear which worker is called first to initialize_session_cache.

We see master and coordinator start properly. so I suspect coordinator might be one to initialze ssl_session_cache?

Or since all my http_port are listed in worker process 4, so isSllServer cannot find https_port, so it will not initialize ssl_session_cache.shm.

Somewhere, something is odd.

THX

Alex


> To: squid-users@lists.squid-cache.org
> From: squid3@treenet.co.nz
> Date: Sat, 25 Jul 2015 10:07:18 +1200
> Subject: Re: [squid-users] cannot leave empty workers
>
> On 25/07/2015 7:24 a.m., Alex Wu wrote:
> > If I define 4 workers, and use the following way to allocate workers:
> >
> > if ${process_number} = 4
> > //do something
> > else
> > endif
>
> The "else" means the wrapped config bit applies to *all* workers and
> processes of Squid except the one in the if-condition (process #4). It
> is optional.
>
> if ${process_number} = 4
> # do something
> endif
>
> It does not even do anything in the code except invert a bitmask. An
> "endif" then erases that bitmask. So an empty "else" is effectively
> doing nothing at all.
> Just like one would expect reading that config.
>
> The bug is elsewhere (sorry for the pun).
>
> >
> > I leave other workers as empty after else, then we encounter this error:
> >
> > FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-ssl_session_cache.shm): (2) No such file or directory
> >
> > If I fill one more workers,especially ${process_number} = 1, then squid can launch workers now,
> >
>
> Was that really the full config?
>
> I dont see "workers 4" in there at all and something must have been
> configured to use the shared memory TLS/SSL session cache.
>
> Amos
>
> _______________________________________________
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux