Re: [naviserver-devel] Code Quality

2014-12-14 Thread Gustaf Neumann
Dear all, we are now at less than 1000 issues in the c-code-quality results, which is already pretty good (see graphic below). NaviServer compiles as well pretty clean with the newest gcc5/clang-3.6 and "--std=c99 -pedantic", except for one problem: conversion between object and function pointer

Re: [naviserver-devel] tcl modules

2014-12-14 Thread Gustaf Neumann
Loading the same module twice is not intentional. Loading modules is probably more complicated as it has to be, but it has to care about global modules (for all servers) and per-server modules, and that network modules are loaded at the end. -g Am 10.12.14 02:54, schrieb Jeff Rogers: > Hi all, >

Re: [naviserver-devel] tcl modules

2014-12-18 Thread Gustaf Neumann
Dear all, i've commited a change for that issue, that William Jordan sent to me. I hope, this fixes the issue. -g Am 14.12.14 10:27, schrieb Gustaf Neumann: > Loading the same module twice is not intentional. > Loading modules is probably more complicated as it > has to be, but

[naviserver-devel] ns_connchan

2014-12-31 Thread Gustaf Neumann
a NaviServer module or similar. The bitbucket repository contains the source, man page and test basic test cases for ns_connchan. All the best in the new year! -gustaf neumann PS: A useful extension might be to provide support for multiple work

Re: [naviserver-devel] Some Questions about NaviServer development

2015-01-19 Thread Gustaf Neumann
Am 19.01.15 um 18:37 schrieb Clinciu Andrei: First I'd like to wish you all a happy new year. Soon it will be almost one year from the first time I started using and learning NaviServer. hi and welcome to the club! In the meantime I've started developing a web framework as an exercise (it's

[naviserver-devel] NaviServer 4.99.7 ante portas

2015-02-20 Thread Gustaf Neumann
modules). If you have pending commits please let me know. i'll hope to be able to do the usual testing, updates of the versions numbers in the documentation, tagging, summarizing of the module changes etc. over the weekend. all the best -gustaf neumann PS: sooner or later a release 5.0

[naviserver-devel] NaviServer 4-99.7 available

2015-02-23 Thread Gustaf Neumann
Dear all, below is the updated snipped of the news file. The release 4.99.7 of NaviServer is tagged and uploaded together with the modules to sourceforge, the documentation pages on sourceforge are as well updated. all the best -gn == NaviServer 4.99.7, relea

[naviserver-devel] WebSocket module for NaviServer available

2015-02-23 Thread Gustaf Neumann
Dear all, There is as well a new NaviServer (Tcl only) module for WebSockets available. This new module implements a WebSocket interface based on the new ns_connchan interface and supports both ws:// (WebSocket over http) and wss:// (WebSocket over https, requires the nsssl module). The module c

Re: [naviserver-devel] Test Bus Error / Seg Fault 4.99.7

2015-02-27 Thread Gustaf Neumann
p blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserv

Re: [naviserver-devel] Test Bus Error / Seg Fault 4.99.7

2015-03-03 Thread Gustaf Neumann
-release of 4.99.8, which we could release next week or so. all the best -gustaf neumann Am 02.03.15 um 14:06 schrieb David Osborne: Thanks Gustaf. I've over written the original core dump I sent to you, but this the equivalent info from a new core (this was a seg fault this time but ap

Re: [naviserver-devel] --enable-rpath

2015-03-06 Thread Gustaf Neumann
Hi David, When i add the following two lines echo "---TCL_CC_SEARCH_FLAGS=$TCL_CC_SEARCH_FLAGS CC_SEARCH_FLAGS=$CC_SEARCH_FLAGS" echo "---TCL_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS LD_SEARCH_FLAGS=$LD_SEARCH_FLAGS" before the setting of CCRFLAG and LDRFLAG on ubuntu (12.04.5 LTS), i se

Re: [naviserver-devel] --enable-rpath

2015-03-07 Thread Gustaf Neumann
in tclConfig.sh on Debian. Which would be the best way to include an rpath to the private naviserver libraries (libnsdb.so, libnsd.so, libnsthread.so etc.) during the Naviserver build so the nsd binary can find them? It seems strange that I would need to change the TCL_*_SEARCH_FLAGS to achiev

Re: [naviserver-devel] "trying to uncork an uncorked socket"

2015-03-10 Thread Gustaf Neumann
___________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Univ.Prof. Dr. Gustaf Neumann WU Vienna Institute of Information Systems and New Media Welthandelsplatz 1, A-10

Re: [naviserver-devel] "trying to uncork an uncorked socket"

2015-03-11 Thread Gustaf Neumann
Hi David, yes, exactlty. It is strange that this did not show up earlier, but since we use naviserver on most sites with openacs, this was not an issue, since ns_return or "ns_writer submitfile" don't reach the nested corking cases as in fastpath + ssl. In sites without ssl, this bug does not

Re: [naviserver-devel] "trying to uncork an uncorked socket"

2015-03-11 Thread Gustaf Neumann
ed. -g Am 11.03.15 um 11:15 schrieb Gustaf Neumann: Hi David, yes, exactlty. It is strange that this did not show up earlier, but since we use naviserver on most sites with openacs, this was not an issue, since ns_return or "ns_writer submitfile" don't reach the nested corking cases

Re: [naviserver-devel] deallocate dbipg

2015-03-26 Thread Gustaf Neumann
vel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Univ.Prof. Dr. Gustaf Neumann WU Vienna Institute of Information Systems and New Media Welthandelsplatz 1, A-1020 Vienna, Austria

Re: [naviserver-devel] "pthread_join failed in Ns_ThreadJoin: Invalid argument"

2015-03-26 Thread Gustaf Neumann
viserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Univ.Prof. Dr. Gustaf Neumann WU Vienna Institute of Information Systems and New Media Welthandelsplatz 1, A-1020 Vienna, Austria ---

Re: [naviserver-devel] "pthread_join failed in Ns_ThreadJoin: Invalid argument"

2015-03-26 Thread Gustaf Neumann
would look very differently. -g On 26 March 2015 at 11:18, Gustaf Neumann <mailto:neum...@wu.ac.at>> wrote: Hi David, We have this issue of shutdown in test-cases and during server shutdown since several years. It is annoying, but mostly harmless. The last time

[naviserver-devel] NaviServer 4.99.8 ante portas

2015-04-06 Thread Gustaf Neumann
es to sourceforge as 4.99.8a. The plan is to release this version on the forthcoming weekend, if nothing comes up. all the best -gustaf neumann == NaviServer 4.99.8, released 2015-04-XX == Changes relative to 4.99.7 37

[naviserver-devel] NaviServer 4.99.8 available

2015-04-13 Thread Gustaf Neumann
ction for 4.99.8 from the NEWS file. all the best -gustaf neumann == NaviServer 4.99.8, released 2015-04-13 == Changes relative to 4.99.7 55 files changed, 1088 insertions(+), 527 deletions(-) New Features: * ns_md5, ns

Re: [naviserver-devel] Naviserver as reverse proxy - header fields

2015-06-26 Thread Gustaf Neumann
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Univ.Prof. Dr. Gustaf Neumann WU Vienna Institute of Information Systems and New Media Welthande

Re: [naviserver-devel] Escaping characters in access log

2015-07-14 Thread Gustaf Neumann
Dear all, This is again a very reasonable request. Since most access-log analyzer are developed against apache rules, it seems that sticking to apache rules is sensible. ... although missing a few lines of hacking attempts is usually not an issue. i've added a small addition to the tip versio

Re: [naviserver-devel] ns_ssl and binary data

2015-07-29 Thread Gustaf Neumann
Am 29.07.15 um 13:44 schrieb David Osborne: > I found a commit for aolserver which makes the change to ns_http which > I think I am looking for which treats the data referenced by bodyPtr > as a byte array when appending it to the request in httpPtr->ds > Would there be any consequences of st

Re: [naviserver-devel] Disabling directorylisting

2015-07-29 Thread Gustaf Neumann
ited -- ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/navise

Re: [naviserver-devel] ns_ssl and binary data

2015-08-03 Thread Gustaf Neumann
tent } which didn't work with this code change, but sticking to bytearray aware commands worked: set content [ns_conn content -binary] if { [string length $content] > 0 } { lappend cmd -body $content } On 29 July 2015 at 13:55, Gustaf Neumann <mailto:neum...@wu.ac.at>> wrote

Re: [naviserver-devel] Remove SSLv3 from protocols in nsssl?

2015-09-18 Thread Gustaf Neumann
Hi Cesáreo, thanks for noting! We had this already removed (e.g. on next-scripting.org, which has a A+ rating), but it was not yet adapted in the README file. -gn Am 18.09.15 um 20:55 schrieb Cesáreo García Rodicio: > Hi > > To get an A rating in SSLlabs SSL Server Test I had to remove SSLv3 > (

Re: [naviserver-devel] Naviserver crash

2015-09-24 Thread Gustaf Neumann
e sessions (saved in cache), file transfers and other things. Thanks! With regards, Clinciu Andrei George "Vorba buna, zambetul si fapta binefacatoare sunt raze ale soarelui rasfrante in sufletul omului." "A good word, a smile and a good deed are just like rays of the sun r

Re: [naviserver-devel] Naviserver crash

2015-09-24 Thread Gustaf Neumann
Dear Andrei, In your config-file, you are loading 6 (!) different SQL drivers, and you are loading nsdbipg 3 times. Is this intended? it is strange that you have closewait larger than keep wait. Is this as well intended? ns_paramclosewait7;# default: 2; timeout in

Re: [naviserver-devel] Compilation error NaviServer 4.99.8

2015-09-25 Thread Gustaf Neumann
z <http://paste2.org/G2a9BEmz> I sure hope i'm not bugging you guys:) With regards, Clinciu Andrei George "Vorba buna, zambetul si fapta binefacatoare sunt raze ale soarelui rasfrante in sufletul omului." "A good word, a smile and a good deed are just like rays of t

Re: [naviserver-devel] Compilation error NaviServer 4.99.8

2015-09-25 Thread Gustaf Neumann
frante in sufletul omului." "A good word, a smile and a good deed are just like rays of the sun reflected in man's soul." by Nicolae Iorga On Friday, September 25, 2015 12:42 PM, Gustaf Neumann wrote: Dear Andrei, Thanks for the compile-log. The problem is th

Re: [naviserver-devel] Compilation error NaviServer 4.99.8

2015-09-25 Thread Gustaf Neumann
Am 25.09.15 um 14:46 schrieb Zoran Vasiljevic: > On 25 Sep 2015, at 14:38, Gustaf Neumann wrote: > >> which will be fixed in 8.5.19, as well as the bug mentioned below (which can >> cause problems for all kinds of forks, when e.g. nsproxy is not used for >> "exec&qu

Re: [naviserver-devel] Compilation error NaviServer 4.99.8

2015-09-27 Thread Gustaf Neumann
Am 25.09.15 um 15:58 schrieb Zoran Vasiljevic: > On 25 Sep 2015, at 15:44, Gustaf Neumann wrote: > >> kind of. the fix was addressing a problem in rivet under Linux, >> the consequences were not easy to spot from the code but hit >> all multi-threaded tcl applications, inc

Re: [naviserver-devel] ns_sendmail's use of ns_sockopen

2015-10-16 Thread Gustaf Neumann
Dear David, from reading the source code, a test for error results was broken (see [1]). -g PS: We use currently tcllib since it supports as well STARTTLS. [1] https://bitbucket.org/naviserver/naviserver/commits/6657f9b1b41aaefc5b452ed0c869659a682813af Am 15.10.15 um 18:27 schrieb David Osborn

Re: [naviserver-devel] C-Api / Configuration Docs

2015-10-18 Thread Gustaf Neumann
Dear Rodrigo, The C-API of NaviServer manifests itself through the external function definitions of libnsd other the other core libraries. The best sources are the naviserver/include/ns.h [1] and the source files (e.g. [2]). All public functions are described based on a standardized template (

Re: [naviserver-devel] commit/naviserver: 3 new changesets

2015-11-19 Thread Gustaf Neumann
yes, this has pretty much potential for various kinds of applications, also for templating, redirects, caching (meta data), etc. However, i would not recommend it for logging, since the associated values are server-wide values that require mutex locking (somewhat like hierarchical nsvs). A high

[naviserver-devel] Towards NaviServer 4.99.9

2016-01-01 Thread Gustaf Neumann
Dear friends of NaviServer, below is a list of changes between NaviServer 4.99.8 and 4.99.9. In case nobody objects, or there are some other urgent changes from you, I'll finish a release of the current tip version of NaviServer the next days. all the best -gustaf ne

[naviserver-devel] NaviServer 4.99.9 available

2016-01-11 Thread Gustaf Neumann
m the NEWS file. all the best -gustaf neumann == NaviServer 4.99.6, released 2016-01-11 == Changes relative to 4.99.8 146 files changed, 5595 insertions(+), 4389 deletions(-) New Features: * New command "ns_urlsp

Re: [naviserver-devel] NaviServer 4.99.9 available

2016-01-12 Thread Gustaf Neumann
Am 12.01.16 um 11:21 schrieb David Osborne: > I noticed there is a recent intent-to-package ticket with Debian. > Are there moves afoot to have Naviserver officially included in Debian? Héctor Romojaro is working on that (he is also maintaining the OpenACS debian package). There is a official requ

Re: [naviserver-devel] Error installing nsdpg in Mac OS X El Capitan

2016-01-17 Thread Gustaf Neumann
Dear Cesáreo, You are right. There is a problem which shows up depending on the used compilers. The conflict of prototypes is fixed by [1]. Since i've fixed also one more probably old issue (setting an Ns_Set member from different threads leading to a potential race condidtion), we should release

[naviserver-devel] NaviServer 4.99.10 available

2016-02-16 Thread Gustaf Neumann
, but it is worthwhile to get the issues fixed soon. all the best -gustaf neumann === NaviServer 4.99.10, released 2016-02-16 === Changes relative to 4.99.9 32 files changed, 404 insertions(+), 123 deletions(-) Bug Fixes

[naviserver-devel] IPv6 for NaviServer

2016-02-24 Thread Gustaf Neumann
sing on Mac OS X and Linux. If you have other platforms, testing would be appreciated. There are some adjustments for windows probably necessary (in the absence of "configure", one has to add manually "HAVE_IPV4" to the compile flags). Any help is welcome. best regards -gustaf neumann

Re: [naviserver-devel] IPv6 for NaviServer

2016-02-25 Thread Gustaf Neumann
Once again thank you, Maurizio -----Original Message- From: Gustaf Neumann [mailto:neum...@wu.ac.at] Sent: 24 February 2016 14:01 To: Navidevel Subject: [naviserver-devel] IPv6 for NaviServer Dear all, over the last week, i've worked on IPv6 support for NaviServer. For this task, i

Re: [naviserver-devel] IPv6 for NaviServer

2016-02-26 Thread Gustaf Neumann
op in nswin32.c. After removing it, everything works fine. The system seems now OK to me. Thank you, Maurizio *From:*Gustaf Neumann [mailto:neum...@wu.ac.at] *Sent:* 25 February 2016 12:33 *To:* naviserver-devel@lists.sourceforge.net *Subject:* Re: [naviserver-devel] IPv6 for NaviServer Hi Ma

Re: [naviserver-devel] IPv6 for NaviServer

2016-02-26 Thread Gustaf Neumann
I’ve updated consequently the Windows-Open distribution (http://www.spazioit.com/pages_en/sol_inf_en/windows-openacs_en/). Thank you, Maurizio *From:*Gustaf Neumann [mailto:neum...@wu.ac.at] *Sent:* 26 February 2016 09:22 *To:* naviserver-devel@lists.sourceforge.net *Subject:* Re: [naviserver-

[naviserver-devel] spnego for NaviServer

2016-02-29 Thread Gustaf Neumann
Dear all, a few minutes ago, i've added the knspnego module to the NaviServer modules on bitbucket, which can be used for single-sign (SSO) via (mostly) windows clients. SPNEGO [1] is an implementation of Simple and Protected GSSAPI Negotiation Mechanism. SPNEGO is used in Microsoft's "HTTP Negot

Re: [naviserver-devel] Additional mime types in nsd/mimetypes.c

2016-03-18 Thread Gustaf Neumann
change than expected: 1 file changed, 607 insertions(+), 99 deletions(-) Please double check, if everything is fine now best regards -gustaf neumann [1] https://bitbucket.org/naviserver/naviserver/commits/c438c3ba27821dcce3f10057c25824c4a9595ae8 [2] http://www.iana.org/assignments/media-types

Re: [naviserver-devel] Form vars + 302 redirect with trailing slash

2016-03-19 Thread Gustaf Neumann
Dear David, Although i do wonder, why this was not noticed before, i think this is a bug. The code is quite old and is the same as in aolserver. The intention is of this code block is to restart the query, there is no reason, why in such case the query variables should be omitted. -g Am 17.0

Re: [naviserver-devel] Additional mime types in nsd/mimetypes.c

2016-03-19 Thread Gustaf Neumann
-g [1] https://lists.freedesktop.org/archives/xdg/2013-March/012711.html Am 17.03.16 um 20:27 schrieb Gustaf Neumann: Dear Wolfgang, Commit [1] updates the media types according to the IANA specs. In the commit i have completed the references for the definitions where possible. Several extensions are uses un

Re: [naviserver-devel] Additional mime types in nsd/mimetypes.c

2016-03-19 Thread Gustaf Neumann
Dear Wolfgang, in 2013 i've updated the compiled-in mimetypes with the complete list of mimetypes from RFCs, W3C and IANA listings. One has to redo this. Unfortunately, the IANA has reorganized some of their materials (the "mime types" became "media types", the detail information is in separa

Re: [naviserver-devel] Form vars + 302 redirect with trailing slash

2016-03-26 Thread Gustaf Neumann
Dear David, this issue is addressed by the following commit on bitbucket: https://bitbucket.org/naviserver/naviserver/commits/052ba1d24e6061c03fe1a09735bb29031cf12a61 all the best and happy easter! -g Am 17.03.16 um 20:57 schrieb Gustaf Neumann: Dear David, Although i do wonder, why this

[naviserver-devel] Towards NaviServer 4.99.11

2016-04-26 Thread Gustaf Neumann
erver 4.99.10 and 4.99.11. 155 files changed, 8357 insertions(+), 3106 deletions(-) all the best -gustaf neumann [1] https://sourceforge.net/projects/naviserver/files/naviserver/4.99.11/ === NaviServer 4.99.11, released 2016-

[naviserver-devel] NaviServer 4.99.11 available

2016-05-01 Thread Gustaf Neumann
from the NEWS file. all the best -gustaf neumann === NaviServer 4.99.11, released 2016-05-01 === Changes relative to 4.99.10 156 files changed, 8613 insertions(+), 3142 deletions(-) New Features: * IPv6 su

[naviserver-devel] module nsssl merged to main NaviServer repository

2016-05-12 Thread Gustaf Neumann
ore crypto functionality. all the best -gustaf neumann [1] https://www.mercurial-scm.org/wiki/MergingUnrelatedRepositories -- Univ.Prof. Dr. Gustaf Neumann WU Vienna Institute of Information Systems and New Media Welthandelsplatz 1, A-1020 Vienn

Re: [naviserver-devel] Error trying to minify files in Debian Server (dpkg error)

2016-06-05 Thread Gustaf Neumann
Dear Cesáreo, > But, when naviserver try to minify a file I see some error[3] reading a > dpkg (debian package instaler) conf file (/root/.dpkg.cfg). And file > doesn't seem to be minified This is indeed strange. In exactly which situation do you get the error? The minify integration is purely on

Re: [naviserver-devel] Error trying to minify files in Debian Server (dpkg error)

2016-06-07 Thread Gustaf Neumann
do > > > [3] > https://bitbucket.org/naviserver/naviserver/src/92c2d93bcaceee799faa8fe58f6f913328efdf01/doc/src/naviserver/ns_return.man?at=default&fileviewer=file-view-default#ns_return.man-272 > > -> js instead of css > > [4] > https://bitbucket.org/naviserver/naviserv

Re: [naviserver-devel] Error trying to minify files in Debian Server (dpkg error)

2016-06-07 Thread Gustaf Neumann
Am 08.06.16 um 00:29 schrieb Cesáreo García Rodicio: > Sorry, I don't have /ds/shell installed so I can not try now. Most openacs developers have the developer support installed... Alternatively, you can use to the control port (nscp module), when configured. With a configuration like the sample

Re: [naviserver-devel] Error trying to minify files in Debian Server (dpkg error)

2016-06-08 Thread Gustaf Neumann
Am 08.06.16 um 14:47 schrieb Cesáreo García Rodicio: > I already did it with control port with same results[1]. As you notice, > it has to be something with env. HOME is /root although start script was > /usr/local/ns/bin/nsd -u openacs -g web ... > > It seems it doesn't load all env variables of U

Re: [naviserver-devel] Building naviserver with merged nsssl

2016-06-23 Thread Gustaf Neumann
for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Univ.Prof. Dr. G

Re: [naviserver-devel] building naviserver 4.99.11 on freebsd

2016-06-23 Thread Gustaf Neumann
Dear Ben, please check the following change https://bitbucket.org/naviserver/naviserver/commits/c5d117b88465e50fd8c47307f373d2427114aedf If i suppose correctly, this change should fix the problem. Unfortunately, i have no FreeBSD system to test. best regards -g Am 23.06.16 um 23:05 schrieb Ben

Re: [naviserver-devel] building naviserver 4.99.11 on freebsd

2016-06-24 Thread Gustaf Neumann
>^ > reentrant.c:152:53: error: 'struct in6_addr' has no member named 's6_addr16' >ntohs(addr.s6_addr16[6]), ntohs(addr.s6_addr16[7])); >

Re: [naviserver-devel] Building naviserver with merged nsssl

2016-06-25 Thread Gustaf Neumann
3 Am 23.06.16 um 09:35 schrieb Gustaf Neumann: > I think, the problem is a consequence of the following change > > https://sourceforge.net/p/naviserver/mailman/message/33544665/ > > ... together with the attempt to make the plain socket driver > functions reusable. > One optio

Re: [naviserver-devel] Contention on mu12

2016-07-08 Thread Gustaf Neumann
Dear David, mu12 is an "autonamed" mutex. The ability of naming (and profiling) of mutexes is a feature of NaviServer (partly inherited from aolServer). When no explicit names are provided to mutexes, these are autonamed and show up like "mu12", which is actually the 12th mutex created on your

Re: [naviserver-devel] Contention on mu12

2016-07-09 Thread Gustaf Neumann
Am 08.07.16 um 16:39 schrieb David Osborne: > If mu12 is the same or this server, and I think it is, this server > seemed to be spending far too much time creating interpreters. > Looking at potential causes of a high interpreter turnover we spotted > that maxthreads was relatively high whilst th

Re: [naviserver-devel] Using openssl in OS X El Capitan to build Naviserver

2016-07-13 Thread Gustaf Neumann
ith-openssl". When OpenSSL is installed via MacPorts, everything works out of the box (El Capitan 10.11.5) best regards -gustaf neumann Am 12.07.16 um 17:34 schrieb Cesáreo García Rodicio: > Hi > > I had a minor error building naviserver on mac OSX[1] with openssl > librari

Re: [naviserver-devel] Using openssl in OS X El Capitan to build Naviserver

2016-07-14 Thread Gustaf Neumann
;> which should be provided on most systems. Actually, only in cases, where no >> "pkg-config" is available, or when alternate implementations should be >> used, >> it is necessary to provide the path after --with-openssl". >> >> When OpenSSL is i

Re: [naviserver-devel] Permission Denied for Ns_SockBind

2016-07-29 Thread Gustaf Neumann
Dear David, when running nsd on a privileged port, you have to use the "-b" option to prebind to this port, like e.g. nsd -u openacs -g nsadmin -i -t ./config-ns.tcl -b [137.208.116.31]:80,[2001:628:404:74::31]:80 as documented in [1]. this example is more complex than you need, si

[naviserver-devel] NaviServer market statistics

2016-08-09 Thread Gustaf Neumann
statistics from sourceforge [2] reached last month a top mark All figures are at a very low level, but the tendency looks good. all the best -gustaf neumann [1] https://w3techs.com/technologies/details/ws-naviserver/all/all [2] https://sourceforge.net/projects/naviserver/files/stats/timeline?dates

[naviserver-devel] release candidate for NaviServer 4.99.12

2016-08-15 Thread Gustaf Neumann
Dear friends of NaviServer, on sourceforge is a release candidate for NaviServer 4.99.12. If everything goes well, the release should follow end of this week. Below are the changes since 4.99.11: best regards -gustaf === NaviServer 4.99.12, released 2016-08-X

[naviserver-devel] NaviServer 4.99.12 available

2016-08-21 Thread Gustaf Neumann
S.org. Below is the section for 4.99.12 from the NEWS file. all the best -gustaf neumann === NaviServer 4.99.12, released 2016-08-21 === 195 files changed, 20265 insertions(+), 13421 deletions(-) New Features: * Op

[naviserver-devel] Changes on the NaviServer code base in the last year

2016-09-20 Thread Gustaf Neumann
e, one can expect that the number of reported issues will rise even without code changes, when the static checkers improve. But altogether, i would expect, that the number of changes between releases will reduce. All the best -gustaf neumann 4.99.11 -> 4.99.12: 195 files changed, 20265 inserti

Re: [naviserver-devel] Naviserver 4.99.12 : content-type of gzipped static content

2016-09-30 Thread Gustaf Neumann
Am 29.09.16 um 13:03 schrieb David Osborne: > I've come across a change in behaviour on upgrading to the 4.99.12 > tagged version which looks like it may be a bug - certainly it's > breaking our current config. > Can you help us with it? Hi David, you are absolute right, there was a bug, fixed b

[naviserver-devel] Release candidate for NaviServer 4.99.13

2016-10-10 Thread Gustaf Neumann
Dear friends of NaviServer, on sourceforge is a release candidate for NaviServer 4.99.13 (see [1]). The version fixes essentially two relatively fresh bugs and continues the ongoing code cleanup process. For example, NaviServer compiles now clean with the type conversion, signed-unsigned compariso

Re: [naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-14 Thread Gustaf Neumann
Dear Iuri, One has to use probably foreground mode (-f, see http://openacs.org/forums/message-view?message_id=187728) for daemontools. We have not used daemontools for ages, i would not recommend it. The install-oacs.sh script [1] installs either a systemd file for naviserver/openacs, or a

Re: [naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-15 Thread Gustaf Neumann
#x27;ll will add one update-rc.d, to > start on boot, plus an upstart script will do the job. > > Best wishes > > On 14-10-2016 05:02, Gustaf Neumann wrote: >> Dear Iuri, >> >> One has to use probably foreground mode (-f, see >> http://openacs.org/forums/mes

[naviserver-devel] NaviServer 4.99.13 available

2016-10-15 Thread Gustaf Neumann
Dear friends of NaviServer, on sourceforge the new release of NaviServer 4.99.13 is available [1]. As always, the newest release can be as well obtained from bitbucket [2]. One more good news item: With the change [3] (which will be in the next release of Tcl, probably 8.6.7), one big source for

Re: [naviserver-devel] Startup Error for tclws in naviserver 4.99.13

2016-10-20 Thread Gustaf Neumann
Hmm, it looks to me, as if this error is triggered not from the startup, but from the shutdown. The backtrace shows, that "ns_ictl cleanup" is causing this, which in turn calls the callbacks registered with Ns_TclRegisterDeferred(), which is a deprecated function (since many years). Ns_TclRegi

Re: [naviserver-devel] Startup Error for tclws in naviserver 4.99.13

2016-10-20 Thread Gustaf Neumann
any http requests #ns_ictl cleanup; # Run depreciated 1-shot Ns_TclRegisterDefer's. } regards, Wolfgang Am 2016-10-20 um 16:26 schrieb Gustaf Neumann: Hmm, it looks to me, as if this error is triggered not from the startup, but from the shutdown. The backtrace shows, that "ns_ic

Re: [naviserver-devel] Startup Error for tclws in naviserver 4.99.13

2016-10-21 Thread Gustaf Neumann
grepped through all our sources but did not find a call to Ns_TclRegisterDeferred, ns_ictl cleanup or ns_cleanup. Am 2016-10-20 um 17:18 schrieb Gustaf Neumann: sure. but the point is, this call does on usual installations nothing, unless someone registers a function with Ns_TclRegisterDe

Re: [naviserver-devel] initial set up and first look

2016-10-31 Thread Gustaf Neumann
Am 31.10.16 um 01:59 schrieb Adam Jensen: > Hi, I am very new to this software. > > NaviServer 4.99.14d1 under FreeBSD 11.0-RELEASE-p1 > > One of the first things that I noticed was the [writer example][1] the contrib/example pages have not been maintained since ages, ... but you are right, a novic

[naviserver-devel] temp file support

2016-10-31 Thread Gustaf Neumann
Dear all, while looking at bugreport #77 [1], i have revisited the situation around tmp file generation in NaviServer. We have currently the following tcl commands implemented (a) ns_tmpnam (b) ns_mktemp the first one is deprecated since a long time, since it uses the deprecated c-library fun

Re: [naviserver-devel] initial set up and first look

2016-11-02 Thread Gustaf Neumann
Am 02.11.16 um 02:24 schrieb Adam Jensen: > I am somewhat new to Mercurial and Bitbucket but I've set up an account > and cloned the repository. Does anyone know of a tutorial or blog that > describes a work-flow, process, or development methodology that fits > this situation? > > There is the cano

Re: [naviserver-devel] Logpartialtimes seemingly giving runtime of *previous* request

2016-11-03 Thread Gustaf Neumann
Am 02.11.16 um 16:49 schrieb David Osborne: I've spotted an issue that seems to have been introduced at some point between 4.99.10 & 4.99.11 (and still present in tip as of today). When logpartialtimes are enabled, the access log seems to be logging the runtime of the previous entry. Dear Davi

Re: [naviserver-devel] initial set up and first look

2016-11-03 Thread Gustaf Neumann
Am 02.11.16 um 21:30 schrieb Adam Jensen: > Back at the Bitbucket web interface, I could then press the 'Compare' > button and see the change. Continuing to follow the instructions, I've > created a pull request to test the process. this worked perfectly, the change is already in the code base. -g

[naviserver-devel] Release candidate for NaviServer 4.99.14

2016-11-11 Thread Gustaf Neumann
Dear friends of NaviServer, on sourceforge is a release candidate for NaviServer 4.99.14 (see [1]). The version fixes essentially a few new and a few old bugs and continues the ongoing code cleanup process. Also the portability is improved (FreeBSD, OmniOS) and ns_connchan was stress-tested via th

[naviserver-devel] NaviServer 4.99.14 available

2016-11-18 Thread Gustaf Neumann
Dear friends of NaviServer, on sourceforge the new release of NaviServer 4.99.14 is available [1]. As always, the newest release can be as well obtained from bitbucket [2]. In short: this release fixes a few bugs, improves the portability to FreeBSD (locale handling) and Solaris (IPv6), provides

[naviserver-devel] Support for multiple driver threads in NaviServer

2016-11-20 Thread Gustaf Neumann
Dear all, some of you might be interested in the following tests, which provides as wll some preview to the next NaviServer release. Some recent OS kernels support SO_REUSEPORT [1], which allows us to open multiple threads to listen on the same port. The current development version for NaviServer

[naviserver-devel] Dynamic connection thread pool mapping

2016-12-07 Thread Gustaf Neumann
Dear all, The forthcoming version of NaviServer will extend the current mapping of requests to connection thread pools by making it introspectible and dynamic (changeable at runtime). Here is the motivation for it: Assume there is a web site expecting about 2000 requests per minute taking <10ms,

[naviserver-devel] Towards NaviSever 4.99.15

2016-12-30 Thread Gustaf Neumann
SIZE - Don't use implementation defined NULL as last argument of variadic functions - Reduced size of huge switch statements - Reduced variable scopes - Reduce number of return statements before end of function - Added const declarations - Silenced static checker -- Univ.Prof. Dr. Gu

Re: [naviserver-devel] Running TCLWS on NaviServer

2016-12-31 Thread Gustaf Neumann
-- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https:/

[naviserver-devel] NaviServer 4.99.15 available

2017-01-10 Thread Gustaf Neumann
Dear friends of NaviServer, on sourceforge the release of NaviServer 4.99.15 is available [1]. As always, the newest release can be as well obtained from bitbucket [2]. In short: this release supports a few new features such as multiple driver threads for listening on the same port (using SO_RE

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-14 Thread Gustaf Neumann
he .gz file and that "gzip_cmd" points to the gzip program. Below is something some data from a life site (openacs.org) having static gzip delivery enabled with a snippet from the config file. There is no extra filter necessary to get this working. best regards -gustaf neumann URL: ht

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-15 Thread Gustaf Neumann
Dear John, What version of NaviServer are you using? There was a related bug in NaviServer 4.99.12, which was fixed in Sept 2016 by commit [2], included in releases since 4.99.13 (Oct 2016) all the best -gustaf [1] https://bitbucket.org/naviserver/naviserver/src/23966c68ab0a758f9d3127b5aaa92

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-16 Thread Gustaf Neumann
Am 16.01.17 um 10:17 schrieb John from Decent Espresso: Thanks Gustaf (Hahaha) that is the cause of the mime-type problem. I’ve upgraded to ns 4.99.15 and the MIME type bug is now gone. However, I’m still not having gzipped files automatically made. I’ve "chmod 777 ." and also "chmod 666 *.cs

Re: [naviserver-devel] ADP without file name extensions

2017-01-16 Thread Gustaf Neumann
Am 16.01.17 um 10:17 schrieb John from Decent Espresso: A different topic. I use the code patch below to get rid of the need for ".adp" on the end of my URLs. In other words, naviserver transparently rewrites https://decentespresso.com/cart as https://decentespresso.com/cart.adp and doesn’t

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-17 Thread Gustaf Neumann
Suggestions for an improved wording in the documentation are welcome. -g Am 17.01.17 um 04:51 schrieb John from Decent Espresso: As David mentioned, one has to make a initial pick which files should be delivered via static gzip by gzipping these. As you mentioned, the the rules, what exactly sh

Re: [naviserver-devel] ADP without file name extensions

2017-01-17 Thread Gustaf Neumann
Dear John, I've prototyped something along these lines, which looks promising so far. Premises: - fit into urlspace mechanism - not limited in applicability to .adp - no full rewrite of urlspace (which is already complex enough) - keep speed of existing implementation - provide a mostly conserva

Re: [naviserver-devel] ADP without file name extensions

2017-01-17 Thread Gustaf Neumann
un for any url with a common extension in the > global urlspace, plus all urls under /static/* > > > > On Tue, Jan 17, 2017 at 12:12 PM, Gustaf Neumann wrote: >> Dear John, >> >> I've prototyped something along these lines, which looks promising so far. &

Re: [naviserver-devel] ADP without file name extensions

2017-01-18 Thread Gustaf Neumann
Am 18.01.17 um 03:45 schrieb John from Decent Espresso: from what I’m understanding, implementing a anything-without-an-extension-is-adp would be a filter like this? ns_register_adp GET /*^*.* Is that right? Can you confirm a file name of "test.situation.adp" would work with this filte

Re: [naviserver-devel] ADP without file name extensions

2017-01-18 Thread Gustaf Neumann
Am 17.01.17 um 23:53 schrieb Stephen: >> That is a neat idea! The only disadvantage is, that the order of >> registration is important, >> which can can lead to fiddling with the config file and to some not easy >> predictable behavior. > Does it make any difference in practice? Don't know. The con

Re: [naviserver-devel] Access logs logging 2 IPs for single request

2017-01-24 Thread Gustaf Neumann
Am 24.01.17 um 11:02 schrieb David Osborne: Can anyone come up with a scenario where a request could have 2 peer IP addresses? We occasionally see entries in the naviserver access logs like this one and I'm really not sure what to make of them: |10.x.x.x, 37.x.x.x - - [23/Jan/2017:07:55:55 +

<    1   2   3   4   5   6   7   >