Thanks Harald.

Yes It is threaded by default.

So the scenario is very simple.

1) In the mode_rivet.conf set the SeparateVirtualInterprets yes
2) in a vhost in Apache, define a RivetChildInit.tcl script in which you
open a TCP socket to a listening server.
3) once Apache is tarted and the socket is connected, kill the listening
server.

My expectation was to be notified in the fileevent procedure of the socket,
but nothing happens.

Can someone do the same test on another platform? I only use Suse.

Thank you,
Brice.



On Wed, Mar 30, 2016 at 11:58 AM, Harald Oehlmann <
harald.oehlm...@elmicron.de> wrote:

> Hi Brice,
>
> first of all, thank you for the test.
> Sad that it does not work.
> Please check the value of $tcl_platform(threaded)
> It is 1 for a threaded build.
>
> I have checked the build log file for OpenSuSE 13.2 32 bit:
>
> https://build.opensuse.org/build/home:oehhar/openSUSE_13.2/i586/apache2-mod_rivet/_log
>
> where there is the line:
> checking for building with threads... yes (default)
>
> e.g. this was also build for threads.
> This has Tcl 8.6.2
>
> SuSE Linux Tumbleweed has Tcl 8.6.5:
>
> https://build.opensuse.org/build/home:oehhar/openSUSE_Tumbleweed/x86_64/apache2-mod_rivet/_log
>
> Hope this helps,
> Harald
>
>
> Am 30.03.2016 um 16:59 schrieb Brice Hamon:
> > Hi Harald,
> >
> > Do you know if TCL is threaded natively on OpenSuse ?
> >
> > I have installed 2.3 on a test machine but the socket notification
> > created in the vhost RivetChildInit script is not working.
> >
> > I was wondering if it could be related to a that.
> >
> > Thank you,
> >
> > Brice.
> >
> >
> > On Wed, Mar 30, 2016 at 9:13 AM, Harald Oehlmann
> > <harald.oehlm...@elmicron.de <mailto:harald.oehlm...@elmicron.de>>
> wrote:
> >
> >     Hi Massimmo,
> >     thank you, great.
> >
> >     rpm building ran smoothly for SuSE, RedHat, CentOS and Scientific
> Linux.
> >     So those should be available on:
> >
> http://software.opensuse.org/package/apache2-mod_rivet?search_term=apache2-mod_rivet
> >
> >     Thank you,
> >     Harald
> >
> >     Am 27.03.2016 um 15:35 schrieb Massimo Manghi:
> >     > We are glad to announce Rivet 2.3.0 was released today. The
> >     rivet-2.3.0
> >     > tar ball might not be available yet from the your closest ASF
> >     mirror but
> >     > it will soon show up
> >     >
> >     > Rivet 2.3.0 consolidates the 2.2.x module series with several
> >     > improvements in the way the command export was handled. This will
> >     be the
> >     > last 2.x version series in preparation of the newly developed 3.0
> >     module.
> >     >
> >     > Rivet 2.3.0 introduces the command ::rivet::try as a wrapper of
> >     the Tcl
> >     > core language try. This command is not exported to the global
> >     namespace
> >     > even when mod_rivet is build with the
> --enable-rivet-commands-export.
> >     > This command should be used within Rivet scripts to protect any
> >     > ::rivet::abort_page and ::rivet::exit execution. These commands
> >     > interrupt code execution by raising a Tcl error with reserved error
> >     > codes (respectively ABORTPAGE and EXITPAGE) to signal the module
> >     to fire
> >     > the AbortScript Tcl script with special codes accessible through
> the
> >     > ::rivet::abort_code command
> >     >
> >     > Execution of ::rivet::try fails if mod_rivet is not built with Tcl
> >     >= 8.6
> >     >
> >     > This mod_rivet version inaugurates the last 2.x version series as
> >     we are
> >     > slowly but constantly working on making the code in the development
> >     > branch mature to be released as Rivet 3.0.0
> >     >
> >     >  -- Massimo Manghi
> >     >
> >     >
> ---------------------------------------------------------------------
> >     > To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
> >     <mailto:rivet-dev-unsubscr...@tcl.apache.org>
> >     > For additional commands, e-mail: rivet-dev-h...@tcl.apache.org
> >     <mailto:rivet-dev-h...@tcl.apache.org>
> >     >
> >
> >
> >     --
> >     ELMICRON Dr. Harald Oehlmann GmbH
> >     Koesener Str. 85
> >     06618 Naumburg
> >     Germany
> >     Phone: +49 (0)3445 78112-0 <tel:%2B49%20%280%293445%2078112-0>
> >     Fax: +49 (0)3445 78112-19 <tel:%2B49%20%280%293445%2078112-19>
> >     www.Elmicron.de <http://www.Elmicron.de>
> >     German legal references:
> >     Geschaeftsfuehrer: Dr. Harald Oehlmann, Jens Oehlmann
> >     UST Nr. / VAT ID No.: DE206105272
> >     HRB 212803 Stendal
> >
> >     ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
> >     <mailto:rivet-dev-unsubscr...@tcl.apache.org>
> >     For additional commands, e-mail: rivet-dev-h...@tcl.apache.org
> >     <mailto:rivet-dev-h...@tcl.apache.org>
> >
> >
>
>
> --
> ELMICRON Dr. Harald Oehlmann GmbH
> Koesener Str. 85
> 06618 Naumburg
> Germany
> Phone: +49 (0)3445 78112-0
> Fax: +49 (0)3445 78112-19
> www.Elmicron.de
> German legal references:
> Geschaeftsfuehrer: Dr. Harald Oehlmann, Jens Oehlmann
> UST Nr. / VAT ID No.: DE206105272
> HRB 212803 Stendal
>

Reply via email to