You can subscribe to this list here.
2005 |
Jan
|
Feb
(53) |
Mar
(62) |
Apr
(88) |
May
(55) |
Jun
(204) |
Jul
(52) |
Aug
|
Sep
(1) |
Oct
(94) |
Nov
(15) |
Dec
(68) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(130) |
Feb
(105) |
Mar
(34) |
Apr
(61) |
May
(41) |
Jun
(92) |
Jul
(176) |
Aug
(102) |
Sep
(247) |
Oct
(69) |
Nov
(32) |
Dec
(140) |
2007 |
Jan
(58) |
Feb
(51) |
Mar
(11) |
Apr
(20) |
May
(34) |
Jun
(37) |
Jul
(18) |
Aug
(60) |
Sep
(41) |
Oct
(105) |
Nov
(19) |
Dec
(14) |
2008 |
Jan
(3) |
Feb
|
Mar
(7) |
Apr
(5) |
May
(123) |
Jun
(5) |
Jul
(1) |
Aug
(29) |
Sep
(15) |
Oct
(21) |
Nov
(51) |
Dec
(3) |
2009 |
Jan
|
Feb
(36) |
Mar
(29) |
Apr
|
May
|
Jun
(7) |
Jul
(4) |
Aug
|
Sep
(4) |
Oct
|
Nov
(13) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
(9) |
Apr
(11) |
May
(16) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
(7) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
(92) |
Nov
(28) |
Dec
(16) |
2013 |
Jan
(9) |
Feb
(2) |
Mar
|
Apr
(4) |
May
(4) |
Jun
(6) |
Jul
(14) |
Aug
(12) |
Sep
(4) |
Oct
(13) |
Nov
(1) |
Dec
(6) |
2014 |
Jan
(23) |
Feb
(19) |
Mar
(10) |
Apr
(14) |
May
(11) |
Jun
(6) |
Jul
(11) |
Aug
(15) |
Sep
(41) |
Oct
(95) |
Nov
(23) |
Dec
(11) |
2015 |
Jan
(3) |
Feb
(9) |
Mar
(19) |
Apr
(3) |
May
(1) |
Jun
(3) |
Jul
(11) |
Aug
(1) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
|
2016 |
Jan
(7) |
Feb
(11) |
Mar
(8) |
Apr
(1) |
May
(3) |
Jun
(17) |
Jul
(12) |
Aug
(3) |
Sep
(5) |
Oct
(19) |
Nov
(12) |
Dec
(6) |
2017 |
Jan
(30) |
Feb
(23) |
Mar
(12) |
Apr
(32) |
May
(27) |
Jun
(7) |
Jul
(13) |
Aug
(16) |
Sep
(6) |
Oct
(11) |
Nov
|
Dec
(12) |
2018 |
Jan
(1) |
Feb
(5) |
Mar
(6) |
Apr
(7) |
May
(23) |
Jun
(3) |
Jul
(2) |
Aug
(1) |
Sep
(6) |
Oct
(6) |
Nov
(10) |
Dec
(3) |
2019 |
Jan
(26) |
Feb
(15) |
Mar
(9) |
Apr
|
May
(8) |
Jun
(14) |
Jul
(10) |
Aug
(10) |
Sep
(4) |
Oct
(2) |
Nov
(20) |
Dec
(10) |
2020 |
Jan
(10) |
Feb
(14) |
Mar
(29) |
Apr
(11) |
May
(25) |
Jun
(21) |
Jul
(23) |
Aug
(12) |
Sep
(19) |
Oct
(6) |
Nov
(8) |
Dec
(12) |
2021 |
Jan
(29) |
Feb
(9) |
Mar
(8) |
Apr
(8) |
May
(2) |
Jun
(2) |
Jul
(9) |
Aug
(9) |
Sep
(3) |
Oct
(4) |
Nov
(12) |
Dec
(13) |
2022 |
Jan
(4) |
Feb
|
Mar
(4) |
Apr
(12) |
May
(15) |
Jun
(7) |
Jul
(10) |
Aug
(2) |
Sep
|
Oct
(1) |
Nov
(8) |
Dec
|
2023 |
Jan
(15) |
Feb
|
Mar
(23) |
Apr
(1) |
May
(2) |
Jun
(10) |
Jul
|
Aug
(22) |
Sep
(19) |
Oct
(2) |
Nov
(20) |
Dec
|
2024 |
Jan
(1) |
Feb
|
Mar
(16) |
Apr
(15) |
May
(6) |
Jun
(4) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(13) |
Nov
(18) |
Dec
(6) |
2025 |
Jan
(12) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(11) |
Jun
(5) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Zoran V. <zv...@ar...> - 2006-08-13 17:09:06
|
On 13.08.2006, at 17:55, Vlad Seryakov wrote: > i think i found it, it is the change about switching into chunked mode > if encoding is used, thus returning the result with length > prepended, so > all test are broken now. > > when i disabled it in the sources, some tests are fine now, http.test, > but still others are broken As I see from the CVS, there were no changes to the C-code there? Did you have to change the C-code?? I guess, Bernd will have to explain what he ment to do with that... Cheers, Zoran |
From: Vlad S. <vl...@cr...> - 2006-08-13 17:01:25
|
i think i found it, it is the change about switching into chunked mode if encoding is used, thus returning the result with length prepended, so all test are broken now. when i disabled it in the sources, some tests are fine now, http.test, but still others are broken Zoran Vasiljevic wrote: > On 13.08.2006, at 17:28, Vlad Seryakov wrote: > > >> I remember my last chnage in keepalive but i am sure i ran make >> test at >> that time, it was month ago, after that not sure about other changes >> really, not many last time >> > > Your last change was: > > 2006-07-21 Vlad Seryakov <ser...@us...> > > * tcl/file.tcl: Use wrapped Tcl proc aroun d.tcl file instead of > not exactly as needed global ns_cache. > > Since then it was only me fiddling with the ns_log and ns_proxy > arround. But, I'm sure I did not get thos errors some times > ago, actually at after 2006-08-04 as this was the last time > I checked in something, NOT counting the last nsproxylib.c change > which is totally unrelated to the core. > > That means: somebody did change the code (or the testsuite) > w/o updating the ChangeLog file. I think I will have to go > to the mail list archive and check the commit maillist as I > did not get any emails about what was changed since.... > > I would ask the commiter (we will found who that is soon) to always > update ChangeLog file so we know what is going on. Otherwise it > is just a waste of time and nerves... > > Cheers > Zoran > > >> Zoran Vasiljevic wrote: >> >>> On 13.08.2006, at 17:21, Vlad Seryakov wrote: >>> >>> >>> >>>> i am suspecting this happened after encoding patches >>>> >>>> >>> WHAT encoding patches??? I see nothing in the ChangeLog! >>> Zoran >>> >>> --------------------------------------------------------------------- >>> ---- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> naviserver-devel mailing list >>> nav...@li... >>> https://lists.sourceforge.net/lists/listinfo/naviserver-devel >>> >>> >>> >> ---------------------------------------------------------------------- >> --- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> naviserver-devel mailing list >> nav...@li... >> https://lists.sourceforge.net/lists/listinfo/naviserver-devel >> > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > > |
From: Zoran V. <zv...@ar...> - 2006-08-13 16:15:25
|
On 13.08.2006, at 18:04, Andrew Piskorski wrote: > > Using it shows that between 7/21 and 8/13, there was only one commit > to Naviserver (ignoring its various modules) by anyone other than > "vasiljevic", this one: > > 2006-08-08 12:07 eide > Ah, Bernd! > * tests/: encoding.test, tclresp.test, test.nscfg, > testserver/modules/testhttp.tcl, > testserver/pages/encoding.iso2iso_adp, > testserver/pages/encoding.iso2utf_adp, > testserver/pages/encoding.iso_adp, > testserver/pages/encoding.utf2iso_adp, > testserver/pages/encoding.utf2utf_adp, > testserver/pages/encoding.utf_adp: * > tests/testserver/pages/encoding.*: Various helper files. * > tests/testserver/modules/testhttp.tcl: nstest_http is now encoding > aware. * tests/test.nscfg: Sections for mimetypes and encodings > added, along with parameters URLCharset, OutputCharset and > HackContentType. * tests/encoding.test: tests for ns_return and > ns_write, changing charsets and verifying URL and ADP encoding. * > tests/tclresp.test: minor modification in tests 3.1 and 4.2 after > change in test.nscfg. Thanks to Michael Lex for writing the > tests. Thanks for getting this one! So, whatever this means: "nstest_http is now encoding aware" it either shows that it is (itself) broken or that our core code is broken :-( Bernd, which one of those it is? Cheers Zoran |
From: Andrew P. <at...@pi...> - 2006-08-13 16:04:13
|
On Sun, Aug 13, 2006 at 05:36:33PM +0200, Zoran Vasiljevic wrote: > That means: somebody did change the code (or the testsuite) > w/o updating the ChangeLog file. I think I will have to go > to the mail list archive and check the commit maillist as I > did not get any emails about what was changed since.... But Zoran, CVS is the master copy of such information, so ask CVS. The "cvs2cl.pl" script is useful for getting a by-date changelog style list of all commits: http://www.red-bean.com/cvs2cl/ Using it shows that between 7/21 and 8/13, there was only one commit to Naviserver (ignoring its various modules) by anyone other than "vasiljevic", this one: 2006-08-08 12:07 eide * tests/: encoding.test, tclresp.test, test.nscfg, testserver/modules/testhttp.tcl, testserver/pages/encoding.iso2iso_adp, testserver/pages/encoding.iso2utf_adp, testserver/pages/encoding.iso_adp, testserver/pages/encoding.utf2iso_adp, testserver/pages/encoding.utf2utf_adp, testserver/pages/encoding.utf_adp: * tests/testserver/pages/encoding.*: Various helper files. * tests/testserver/modules/testhttp.tcl: nstest_http is now encoding aware. * tests/test.nscfg: Sections for mimetypes and encodings added, along with parameters URLCharset, OutputCharset and HackContentType. * tests/encoding.test: tests for ns_return and ns_write, changing charsets and verifying URL and ADP encoding. * tests/tclresp.test: minor modification in tests 3.1 and 4.2 after change in test.nscfg. Thanks to Michael Lex for writing the tests. (Unfortunately the ancient cvs2cl.pl version 1.2 I'm using tends to mis-format the the cvs commit messages.) -- Andrew Piskorski <at...@pi...> http://www.piskorski.com/ |
From: Zoran V. <zv...@ar...> - 2006-08-13 15:36:41
|
On 13.08.2006, at 17:28, Vlad Seryakov wrote: > I remember my last chnage in keepalive but i am sure i ran make > test at > that time, it was month ago, after that not sure about other changes > really, not many last time Your last change was: 2006-07-21 Vlad Seryakov <ser...@us...> * tcl/file.tcl: Use wrapped Tcl proc aroun d.tcl file instead of not exactly as needed global ns_cache. Since then it was only me fiddling with the ns_log and ns_proxy arround. But, I'm sure I did not get thos errors some times ago, actually at after 2006-08-04 as this was the last time I checked in something, NOT counting the last nsproxylib.c change which is totally unrelated to the core. That means: somebody did change the code (or the testsuite) w/o updating the ChangeLog file. I think I will have to go to the mail list archive and check the commit maillist as I did not get any emails about what was changed since.... I would ask the commiter (we will found who that is soon) to always update ChangeLog file so we know what is going on. Otherwise it is just a waste of time and nerves... Cheers Zoran > > Zoran Vasiljevic wrote: >> On 13.08.2006, at 17:21, Vlad Seryakov wrote: >> >> >>> i am suspecting this happened after encoding patches >>> >> >> WHAT encoding patches??? I see nothing in the ChangeLog! >> Zoran >> >> --------------------------------------------------------------------- >> ---- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> naviserver-devel mailing list >> nav...@li... >> https://lists.sourceforge.net/lists/listinfo/naviserver-devel >> >> > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel |
From: Vlad S. <vl...@cr...> - 2006-08-13 15:28:26
|
I remember my last chnage in keepalive but i am sure i ran make test at that time, it was month ago, after that not sure about other changes really, not many last time Zoran Vasiljevic wrote: > On 13.08.2006, at 17:21, Vlad Seryakov wrote: > > >> i am suspecting this happened after encoding patches >> > > WHAT encoding patches??? I see nothing in the ChangeLog! > Zoran > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > > |
From: Zoran V. <zv...@ar...> - 2006-08-13 15:24:10
|
On 13.08.2006, at 17:21, Vlad Seryakov wrote: > i am suspecting this happened after encoding patches WHAT encoding patches??? I see nothing in the ChangeLog! Zoran |
From: Vlad S. <vl...@cr...> - 2006-08-13 15:21:55
|
i am suspecting this happened after encoding patches Zoran Vasiljevic wrote: > Hi! > > Please(!) update ChangeLog when commiting new changes. > > There is a whole lotta new errors in the test suite > in the form of: > > ---- Result was: > 200 {} {1 > x > 0 > > } > ---- Result should have been (exact matching): > 200 1 x > ==== tclresp-4.2 FAILED > > Now, what IS this? I cannot remember seeing those > errors couple of days ago when I last commited. > Since then I saw no entries in the ChangeLog so > I wonder where is this comming from??? > > Cheers > Zoran > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > > |
From: Zoran V. <zv...@ar...> - 2006-08-13 15:06:18
|
Hi! Please(!) update ChangeLog when commiting new changes. There is a whole lotta new errors in the test suite in the form of: ---- Result was: 200 {} {1 x 0 } ---- Result should have been (exact matching): 200 1 x ==== tclresp-4.2 FAILED Now, what IS this? I cannot remember seeing those errors couple of days ago when I last commited. Since then I saw no entries in the ChangeLog so I wonder where is this comming from??? Cheers Zoran |
From: Michael L. <mic...@gm...> - 2006-08-08 09:48:35
|
When no OutpuCharset is defined, naviserver will send the content without transformation, that means utf-8. But according to the RFC 2616 (HTTP 1.1) all content without an explicit "charset: ..." in the Content-Type-Header should be treated as iso-8859-1 by the clients. This causes problems when you have an incomplete configuration (w/o OutputCharset). Michael |
From: Michael L. <mic...@gm...> - 2006-08-08 09:40:33
|
I'm new to Naviserver and I'm not quite sure about the intended use of ns_conn encoding. There are three situation where it is possible to change the encoding by hand: 1. When using ns_write, you can set the encoding with ns_startcontent -type. You could also use ns_conn encoding, but ns_startcontent was designed only for this purpose, so i think it would be better to use this function. 2. Inside adp-files one can use ns_conn encoding. But it is necessary to change the Content-Type-Header explicitly. The function ns_adp_mimetype will set the Content-Header and change the encoding, so the use of this function is easier and less dangerous. 3. ns_return expects a type-argument which will be used to create the Content-Type-Header. If you specify a charset, naviserver will automatically load the corresponding tcl-encoding. So here you have also no need to change the encoding with ns_conn encoding (btw if you do so, the result is very confusing). For me it looks like the use cases for ns_conn encoding are rare, e.g. if you use it in a context where the client knows exactly what encoding to expect. The documentation should mention the above alternatives and warn not to use ns_conn encoding if you "don't know all side effects." Michael |
From: Bernd E. <eid...@we...> - 2006-08-08 08:57:20
|
Hi Stephen, I asked my colleague Michael to apply your patch and start writing tests for the encoding. He wrote some and it looks like there should some other things be considered/fixed first to make them meaningful. After that we can discuss a solution for the Content-Length/Encoding problem which was introduced by the scatter/gather algorithms. I'll ask Michael to join the list and summarize what he found in the code. Bernd. > >From your explanations of encodings, it sounds like you've got a real > > handle on this! A lot of nice debugging and testing there too. If > you turn that into some real tests and put them in tests/ecoding.test, > I'll give you a big kiss! > > Re the open bug: I'm pretty sure removing the shortcut for utf-8 will > fix it, but I'm having trouble writing tests to prove it! > > Attached are some tests I was working on (ouch!) 4 months ago... Big > kisses all round for anyone who can figure this out. |
From: Zoran V. <zv...@ar...> - 2006-07-29 12:07:09
|
On 28.07.2006, at 23:52, Zoran Vasiljevic wrote: > OK. This should be easy. It does not appear on Darwin or Solaris. WRONG! This happens on all machines! I guess I have added that one in the very last (innocent) step to remove round-robin usage of proxies and hence keep the number of nsproxy processes at miniumum. This was just a small change and I did not run the test-suite for that. Good lesson to learn: run the test suite always, regardless how small the change is. Anyways, the fix is now checked in. Cheers, Zoran |
From: Zoran V. <zv...@ar...> - 2006-07-28 22:17:12
|
On 29.07.2006, at 00:00, Stephen Deasey wrote: > > If i leave it long enough, it starts to log ADP page cache > statistics...!?!?! > > Laptop's getting toasty..! This is some stupid memory thing... |
From: Stephen D. <sd...@gm...> - 2006-07-28 22:00:39
|
On 7/28/06, Zoran Vasiljevic <zv...@ar...> wrote: > > On 28.07.2006, at 23:39, Stephen Deasey wrote: > > > > > It buzzes the CPU. > > > I see. It skyrockets to 100%. > OK. This should be easy. It does not appear on Darwin or Solaris. > I will fix this tomorrow... > If i leave it long enough, it starts to log ADP page cache statistics...!?!?! Laptop's getting toasty..! |
From: Zoran V. <zv...@ar...> - 2006-07-28 21:52:13
|
On 28.07.2006, at 23:39, Stephen Deasey wrote: > > It buzzes the CPU. I see. It skyrockets to 100%. OK. This should be easy. It does not appear on Darwin or Solaris. I will fix this tomorrow... Cheers Zoran |
From: Stephen D. <sd...@gm...> - 2006-07-28 21:50:52
|
On 7/28/06, Zoran Vasiljevic <zv...@ar...> wrote: > > On 28.07.2006, at 23:39, Stephen Deasey wrote: > > > The nsproxy tests are hanging for me soon after this message: > > > > ns_proxy.test > > [28/Jul/2006:22:36:25][3065.2895170464][-nsproxy:reap-] Notice: > > starting > > > > It buzzes the CPU. > > > > Looks like memory corruption. > > I will look at this tomorrow. BTW what does it mean "buzzes the CPU" ? 100% usage. |
From: Zoran V. <zv...@ar...> - 2006-07-28 21:44:50
|
On 28.07.2006, at 23:39, Stephen Deasey wrote: > The nsproxy tests are hanging for me soon after this message: > > ns_proxy.test > [28/Jul/2006:22:36:25][3065.2895170464][-nsproxy:reap-] Notice: > starting > > It buzzes the CPU. > > Looks like memory corruption. I will look at this tomorrow. BTW what does it mean "buzzes the CPU" ? Cheers zoran |
From: Stephen D. <sd...@gm...> - 2006-07-28 21:40:05
|
The nsproxy tests are hanging for me soon after this message: ns_proxy.test [28/Jul/2006:22:36:25][3065.2895170464][-nsproxy:reap-] Notice: starting It buzzes the CPU. Looks like memory corruption. Linux 2.6. |
From: Vlad S. <vl...@cr...> - 2006-07-24 20:17:45
|
No problem, i just wanted to remove non-functional global cache Stephen Deasey wrote: > Some people 'cache' content to disk in the form of Tcl pages. There's > the logic in there that needs to run at page delivery time, plus some > data from a db, for example. New Tcl pages are created as new content > arrives, deleted as necessary. > > The ns:tclcache_* procs are only ever created. This is a cache of > infinite size. > > It may be easier to just bite the bullet and create an ADP wrapper > that simulates a single-chunk ADP page... > > > > On 7/22/06, Vlad Seryakov <ser...@us...> wrote: >> Update of /cvsroot/naviserver/naviserver/tcl >> In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23802/tcl >> >> Modified Files: >> file.tcl >> Log Message: >> Use wrapped Tcl proc aroun d.tcl file instead of not exactly as needed working global ns_cache for cacheing Tcl bytecode >> >> >> Index: file.tcl >> =================================================================== >> RCS file: /cvsroot/naviserver/naviserver/tcl/file.tcl,v >> retrieving revision 1.7 >> retrieving revision 1.8 >> diff -C2 -d -r1.7 -r1.8 >> *** file.tcl 9 Mar 2006 11:25:55 -0000 1.7 >> --- file.tcl 22 Jul 2006 02:24:09 -0000 1.8 >> *************** >> *** 53,57 **** >> ns_register_proc POST /*.tcl ns_sourceproc >> ns_register_proc HEAD /*.tcl ns_sourceproc >> - ns_cache_create ns:filecache [ns_config $path filecachesize 5000000] >> } >> >> --- 53,56 ---- >> *************** >> *** 86,126 **** >> # >> # Side effects: >> ! # Caches the file content and Tcl_Obj's rep of the >> ! # sourced script in per-thread cache (is this true?) >> # >> >> ! proc ns_sourcefile {filename} { >> ! >> ! file stat $filename stat >> ! set current_cookie $stat(mtime):$stat(ctime):$stat(ino):$stat(dev) >> ! >> ! # >> ! # Read current cached file >> ! # >> ! >> ! set pair [ns_cache_eval ns:filecache $filename { >> ! list $current_cookie [ns_fileread $filename] >> ! }] >> >> ! # >> ! # If changed, re-cache it >> ! # >> >> ! if {[lindex $pair 0] ne $current_cookie} { >> ! ns_cache_flush ns:filecache $filename >> ! set pair [ns_cache_eval ns:filecache $filename { >> ! list $current_cookie [ns_fileread $filename] >> ! }] >> } >> ! >> ! # >> ! # And here's the magic part. We're using "for" here to translate the >> ! # text source file into bytecode, which will be associated with the >> ! # Tcl_Obj we just cached (as its internal representation). "eval" >> ! # doesn't do this as the eval provided in Tcl uses the TCL_EVAL_DIRECT >> ! # flag, and hence interprets the text directly. >> ! # >> ! >> ! uplevel [for [lindex $pair 1] {0} {} {}] >> } >> >> --- 85,107 ---- >> # >> # Side effects: >> ! # Each .tcl file will be wrapped into Tcl proc in every thread >> # >> >> ! proc ns_sourcefile { path } { >> >> ! set proc0 [info procs ns:tclcache_$path] >> ! file stat $path stat >> ! set cookie0 $stat(mtime):$stat(ctime):$stat(ino):$stat(dev) >> >> ! # Verify file modification time >> ! if { $proc0 == "" || [$proc0 1] != $cookie0 } { >> ! set code [ns_fileread $path] >> ! proc ns:tclcache_$path { {getcookie 0} } " >> ! if { \$getcookie } { return $cookie0 } >> ! $code >> ! " >> } >> ! # Run the proc >> ! ns:tclcache_$path >> } >> >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> naviserver-commits mailing list >> nav...@li... >> https://lists.sourceforge.net/lists/listinfo/naviserver-commits >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |
From: Stephen D. <sd...@gm...> - 2006-07-24 20:14:50
|
Some people 'cache' content to disk in the form of Tcl pages. There's the logic in there that needs to run at page delivery time, plus some data from a db, for example. New Tcl pages are created as new content arrives, deleted as necessary. The ns:tclcache_* procs are only ever created. This is a cache of infinite size. It may be easier to just bite the bullet and create an ADP wrapper that simulates a single-chunk ADP page... On 7/22/06, Vlad Seryakov <ser...@us...> wrote: > Update of /cvsroot/naviserver/naviserver/tcl > In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23802/tcl > > Modified Files: > file.tcl > Log Message: > Use wrapped Tcl proc aroun d.tcl file instead of not exactly as needed working global ns_cache for cacheing Tcl bytecode > > > Index: file.tcl > =================================================================== > RCS file: /cvsroot/naviserver/naviserver/tcl/file.tcl,v > retrieving revision 1.7 > retrieving revision 1.8 > diff -C2 -d -r1.7 -r1.8 > *** file.tcl 9 Mar 2006 11:25:55 -0000 1.7 > --- file.tcl 22 Jul 2006 02:24:09 -0000 1.8 > *************** > *** 53,57 **** > ns_register_proc POST /*.tcl ns_sourceproc > ns_register_proc HEAD /*.tcl ns_sourceproc > - ns_cache_create ns:filecache [ns_config $path filecachesize 5000000] > } > > --- 53,56 ---- > *************** > *** 86,126 **** > # > # Side effects: > ! # Caches the file content and Tcl_Obj's rep of the > ! # sourced script in per-thread cache (is this true?) > # > > ! proc ns_sourcefile {filename} { > ! > ! file stat $filename stat > ! set current_cookie $stat(mtime):$stat(ctime):$stat(ino):$stat(dev) > ! > ! # > ! # Read current cached file > ! # > ! > ! set pair [ns_cache_eval ns:filecache $filename { > ! list $current_cookie [ns_fileread $filename] > ! }] > > ! # > ! # If changed, re-cache it > ! # > > ! if {[lindex $pair 0] ne $current_cookie} { > ! ns_cache_flush ns:filecache $filename > ! set pair [ns_cache_eval ns:filecache $filename { > ! list $current_cookie [ns_fileread $filename] > ! }] > } > ! > ! # > ! # And here's the magic part. We're using "for" here to translate the > ! # text source file into bytecode, which will be associated with the > ! # Tcl_Obj we just cached (as its internal representation). "eval" > ! # doesn't do this as the eval provided in Tcl uses the TCL_EVAL_DIRECT > ! # flag, and hence interprets the text directly. > ! # > ! > ! uplevel [for [lindex $pair 1] {0} {} {}] > } > > --- 85,107 ---- > # > # Side effects: > ! # Each .tcl file will be wrapped into Tcl proc in every thread > # > > ! proc ns_sourcefile { path } { > > ! set proc0 [info procs ns:tclcache_$path] > ! file stat $path stat > ! set cookie0 $stat(mtime):$stat(ctime):$stat(ino):$stat(dev) > > ! # Verify file modification time > ! if { $proc0 == "" || [$proc0 1] != $cookie0 } { > ! set code [ns_fileread $path] > ! proc ns:tclcache_$path { {getcookie 0} } " > ! if { \$getcookie } { return $cookie0 } > ! $code > ! " > } > ! # Run the proc > ! ns:tclcache_$path > } > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > naviserver-commits mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-commits > |
From: Mike <nee...@gm...> - 2006-07-23 01:28:22
|
On 7/22/06, Vlad Seryakov <vl...@cr...> wrote: > I agree, actually i have foreach command in OSSWEB and i do not know why > it is not included in to nstk, let me add it. Also, tell me if what kind > of functionality you would like to see in nstk without make it bloated > or big. I know it is very limited, that was the goal. > > I am familiar with OpenACS and i created nstk for only reason not to add > any additional baggage so it can be used standalone with no > dependencies. Of course it is mutual to having full-blown system like > OpenACS. It is not clear to me that it makes sense to enhance nstk if Stephen is working on something similar. I think a consensus on the "one true direction" should be made and efforts placed into it. Do you agree? |
From: Vlad S. <vl...@cr...> - 2006-07-23 01:10:12
|
I agree, actually i have foreach command in OSSWEB and i do not know why it is not included in to nstk, let me add it. Also, tell me if what kind of functionality you would like to see in nstk without make it bloated or big. I know it is very limited, that was the goal. I am familiar with OpenACS and i created nstk for only reason not to add any additional baggage so it can be used standalone with no dependencies. Of course it is mutual to having full-blown system like OpenACS. > > Vlad, > I am familiar with OpenACS database API. I am used to it. nstk is > very limited as a database API - it is intended to output to a > template, so, for example, it's missing a db_foreach sort of > functionality. I didn't say it is terrible - I said it hasn't been > terrible working with it - but not nearly as pleasant as the ns_db API > I am used to. I also looked at OSSWEB, but it brings with itself a > whole bunch of baggage that I'm not ready for, e.g. > ossweb::util::parse_args ... > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |
From: Mike <nee...@gm...> - 2006-07-23 01:04:47
|
On 7/22/06, Vlad Seryakov <vl...@cr...> wrote: > nstk is quite old and i have not updated in for a long time. > > Can you describe what was not pleasant and what was terrible, i may work > on that to improve it. Vlad, I am familiar with OpenACS database API. I am used to it. nstk is very limited as a database API - it is intended to output to a template, so, for example, it's missing a db_foreach sort of functionality. I didn't say it is terrible - I said it hasn't been terrible working with it - but not nearly as pleasant as the ns_db API I am used to. I also looked at OSSWEB, but it brings with itself a whole bunch of baggage that I'm not ready for, e.g. ossweb::util::parse_args ... |
From: Vlad S. <vl...@cr...> - 2006-07-23 00:43:42
|
nstk is quite old and i have not updated in for a long time. Can you describe what was not pleasant and what was terrible, i may work on that to improve it. Mike wrote: >>> Right now I am >>> looking at 4 choices: >>> >>> 1) drop nsdb from naviserver and use nstcl after cleaning up any >>> multi-thread issues >>> 2) import ad_proc and 00-database from OACS and hack them up until >>> they work. (unfortunately the combination of the two is not possible >>> - nstcl ad_proc does not support positional parameters without default >>> values after named parameters ith default values) >>> 3) dig into OSSWEB and import its notion of ad_proc and db_* >>> 4) nsdbi and friends >>> >>> Numbers 3 and 4 sound most appealing to me at this moment because >>> these are "most supported" by the naviserver "community" - getting >>> help with 00-database is unlikely to happen for something unrelated to >>> OACS and nstcl hasn't been touched in 2+ years. The downside to >>> Number 3 is that i need to import a bunch of things with OSSWEB that >>> are not related to the database, and I am hesitant about doing so. >>> Your thoughts, comments, and opinions are most welcome. >>> >> You're using Postgres, right? > > Correct. Thus far I've been trying to use nstk. It hasn't been > terrible, but it hasn't been pleasant either... > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |