Re: [AOLSERVER] Generating Dynamic PDF's from AOLs

2003-12-09 Thread Rob Mayoff
+-- On Dec 9, Steve Manning said: | I want to create a PDF version of a database report for downloading. | Does anyone know of a way to dynamically generate PDF's within | AOLserver? At ArsDigita I used to do this for one particular customer. -- AOLserver

Re: [AOLSERVER] Ns_SetRequestAuthorizeProc has no Tcl Command

2003-11-03 Thread Rob Mayoff
+-- On Nov 4, russm said: | that's ridiculous - if you can't secure your server enough to protect | the user passwords then you can't secure it enough to protect the | content protected by those passwords, and you're already up the | proverbial creek without a paddle. Suppose an intruder b

Re: [AOLSERVER] TCL Bug?

2003-10-20 Thread Rob Mayoff
I must disavow my earlier claim that all four regexp commands would always be executed. This test seems to indicate otherwise: $ rpm -q tcl tcl-8.3.5-88 $ tclsh % if [puts A;expr 1] {puts 1} elseif [puts B;expr 2] {puts 2} A 1 % if [puts A;expr 0] {puts 1} elseif [puts B;expr 2] {puts 2} A B 2 %

Re: [AOLSERVER] TCL Bug?

2003-10-20 Thread Rob Mayoff
Your if statement has four regexp command substitutions, all of which will always be executed. All four have side effects which change the values of dummy, p, and ver. When your MSIE regexp matches, your Mozilla regexp will usually also match. You don't know whether Tcl will execute your Mozilla re

Re: [AOLSERVER] tcl q: how to see escape chars

2003-10-17 Thread Rob Mayoff
+-- On Oct 17, Scott Laplante said: | Is there a way in tcl to puts(?) a string, but instead of intrepreting, | showing all special characters? There's no built-in way that I know of, but if you give us a more precise definition of "special characters" I'm sure we can help you out. Tcl st

Re: [AOLSERVER] nspostgres driver won't load

2003-10-13 Thread Rob Mayoff
+-- On Oct 12, Tom Brown said: | I am running Aolserver (3.3.1_ad13) without the OACS system. I created an | aolserver config file using the nspostgres.so driver, version 1.6, | 2002/12/16, and code from OpenACS' sample aolserver config. I am starting | the server with nsd-postgres. Are yo

Re: [AOLSERVER] Invalid command name "" error

2003-10-09 Thread Rob Mayoff
+-- On Oct 9, Tom Brown said: | [09/Oct/2003:03:06:32][187.6958089][-conn917-] Error: invalid command name "" | invalid command name "" | while executing | "[ns_puts [clock format $fullpath(ctime) -format "%m/%d/%Y"] | ]" You have an extra set of brackets around your ns_puts command.

Re: [AOLSERVER] Can you help me get rid of the temp files in this exec?

2003-09-07 Thread Rob Mayoff
+-- On Sep 7, Jerry Asher said: | Do I basically have it or is there a better way to do this? Talk to the payment processor from the PK, not the WS. That way, a decrypted CC# only exists on the WS when the user first enters it. It's immediately encrypted and stored in the DB. It never agai

Re: [AOLSERVER] is ns_conn peeraddr spoofable?

2003-08-19 Thread Rob Mayoff
+-- On Aug 20, russm said: | There has also been talk on the list of having [ns_conn peeraddr] | return the address in the "X-Forwarded-For:" header (if one exists). I don't think anyone is pushing for XFF to be honored by default. -- AOLserver - http://www.aolserver.com/ To Remove your

Re: [AOLSERVER] is ns_conn peeraddr spoofable?

2003-08-19 Thread Rob Mayoff
+-- On Aug 19, Andrew Piskorski said: | Or could a client outside the router somehow spoof the peer address to | make it look like the request is coming from a machine on my LAN? A client outside might be able to spoof the peer address, if your router doesn't drop the packets. Perhaps it d

Re: [AOLSERVER] Lengthy tcl interp initialization

2003-08-14 Thread Rob Mayoff
+-- On Aug 13, Zoran Vasiljevic said: | Although I doubt that this kind of function is possible to implement | generically in mt-safe fashion, one may get a good approximation | which would (could) be satisfactory for the AS usage. AOLserver could keep an initialized "donor" interpreter ar

Re: [AOLSERVER] IM'ed URLs not being logged

2003-08-01 Thread Rob Mayoff
+-- On Aug 1, Daniel P. Stasinski said: | In the tcpdump thats I posted in the last hour, the first hit | returned the image (and response 200) but it was never logged . | The second hit was when I clicked the refresh button and it | returned 304 and WAS logged. It works the same way with

Re: [AOLSERVER] IM'ed URLs not being logged

2003-08-01 Thread Rob Mayoff
I don't see anything weird about the HTTP request. Try creating a dummy file, like /foo.txt, containing just a few ASCII characters, and see if you can reproduce the problem with that URL. If so, post a tcpdump of that. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list

Re: [AOLSERVER] IM'ed URLs not being logged

2003-07-31 Thread Rob Mayoff
+-- On Jul 31, Daniel P. Stasinski said: | I have pasted URL's in AIM and on irc, and also typed in the | specific url into the url box on IE 6 and Linux/Mozilla and in | each case it was not logged. Capture the entire HTTP request that isn't logged, using "tcpdump -s 2000 -w tcpdump.out p

Re: [AOLSERVER] Are the weekly chats officially dead?

2003-07-31 Thread Rob Mayoff
+-- On Jul 31, Roberto Mello said: | - Readline support for nscp. You could just get a better client program. For example, connecting to nscp from inside Emacs can give you editing and history support. If you have a separate program that puts readline on top of a TCP connection, you can u

Re: [AOLSERVER] Pound vs. ns_write

2003-07-21 Thread Rob Mayoff
+-- On Jul 21, Gustaf Neumann said: > If the community prefers to keep [ns_conn peeraddr] as it is, we would > would not alter these 70+ occurances, but modify our local copy > of [ad_conn ...] So it sounds like you don't even HAVE the problem you're complaining about! It would be nice

Re: [AOLSERVER] Pound vs. ns_write

2003-07-19 Thread Rob Mayoff
+-- On Jul 19, Jim Wilcoxson said: > Separate routines makes it harder to find out "how do I do this > thing?", That sounds more like a problem of inadequate documentation. > Overloading ns_conn is easy in TCL: It's not as easy as NOT overloading it, and it slows down every invocation of

Re: [AOLSERVER] Pound vs. ns_write

2003-07-19 Thread Rob Mayoff
+-- On Jul 19, Dossy said: > If someone's going to hack your system, presumably they're not going to > be dumb enough to do it from their OWN IP address. (That's like making > threatening phone calls from your home landline phone! Duh!) Presumably the FBI will want to investigate the com

Re: [AOLSERVER] Pound vs. ns_write

2003-07-19 Thread Rob Mayoff
+-- On Jul 19, Dossy said: > Why even record their IP address if you have their user ID? When someone hacks your system and costs your thousands of dollars, the FBI might find the IP address useful in tracking down the hacker. -- AOLserver - http://www.aolserver.com/ To Remove yourself

Re: [AOLSERVER] Pound vs. ns_write

2003-07-19 Thread Rob Mayoff
+-- On Jul 19, Dossy said: > Configuring an optional whitelist of peeraddrs to trust would be neat > (only look for the X-Forwarded-For header if the peeraddr belongs to a > list of IPs). My dqd_log module has an "AccelAddresses" parameter. If [ns_conn peeraddr] is in the AccelAddresses l

Re: [AOLSERVER] Pound vs. ns_write

2003-07-19 Thread Rob Mayoff
+-- On Jul 19, Nathan Folkman said: > Actually I think Dossy is proposing to add a new arg to the ns_conn > command, and not changing the current behavior of "ns_conn peeraddr" in > order to keep backwards compatibility. I believe the proposal was to add > something like "ns_conn clientaddr

Re: [AOLSERVER] can aolserver redirect to a different site

2003-06-19 Thread Rob Mayoff
proc redirect_t_site1a {args why} { ns_returnredirect "http://www.site1a[ns_conn url]" return filter_return } ns_register_filter GET /* redirect_to_site1a -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the bod

Re: [AOLSERVER] AOLserver4 beta 8 can't be killed by daemontools svc

2003-06-13 Thread Rob Mayoff
+-- On Jun 13, Tom Jackson said: > /usr/local/aolserver4/bin/nsd -it /web/control/iunicycle-dev/iunicycle-dev-nsd.tcl > -u tom -b 192.168.111.100:80 You need to use "exec /usr/local/aolserver4/bin/nsd ...". The way you have it now leaves bash running, waiting for nsd to exit. When you s

Re: [AOLSERVER] AOLserver4 beta 8 can't be killed by daemontools svc

2003-06-13 Thread Rob Mayoff
+-- On Jun 13, Tom Jackson said: > What happens is that AOLserver continues to run, yet daemontools starts > up another one. Show us your run script. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and op

Re: [AOLSERVER] [ aolserver-Feature Requests-746579 ] Server instance controller process

2003-06-03 Thread Rob Mayoff
+-- On Jun 2, Ian Harding said: > Same as Daemontools. If nsd gets told to exit any other way than 'svc -d nsd'', it > will get started again (if set up to re-start) You could give nsd the ability to do "svc -d" on itself. -- AOLserver - http://www.aolserver.com/ To Remove yourself fro

Re: [AOLSERVER] [ aolserver-Feature Requests-746579 ] Server instance controller process

2003-06-01 Thread Rob Mayoff
+-- On May 31, Dossy said: > I haven't used daemontools yet, but does running nsd under daemontools > require you to run nsd -f? Or, will daemontools monitor the PID of nsd > and do the right thing if nsd disappears? You use -f. -- AOLserver - http://www.aolserver.com/ To Remove yoursel

Re: [AOLSERVER] [ aolserver-Feature Requests-746579 ] Server instance controller process

2003-06-01 Thread Rob Mayoff
+-- On May 31, Zoran Vasiljevic said: > Doable, but messy. IMHO. nsd already takes care about pid-file > logfiles, etc when going to background. This is all nice stuff > and I wouldn't like to reimplement all this in an external shell-script. > Why just not put this logic on the C-level in

Re: [AOLSERVER] BIG problem with Tcl8.4.(1|2)

2003-03-27 Thread Rob Mayoff
+-- On Mar 27, Andrew Piskorski said: > And if that object were TLS, per-thread, then the error could not > occur. It might cause OTHER problems, which is what my questions > above were getting at, and it might plain not be feasible to > implement. But a TLS pwd would solve the "blindly p

Re: [AOLSERVER] AOLserver 4.x and MacOSX: cwd problem

2003-03-27 Thread Rob Mayoff
+-- On Mar 27, Rob Mayoff said: > Actually, now that I think about it, realpath is documented to take > an output buffer of only PATH_MAX bytes, so this doesn't apply to > PATH_MAX. It meant "doesn't apply to realpath()", of course. Darn it. -- AOLserver -

Re: [AOLSERVER] AOLserver 4.x and MacOSX: cwd problem

2003-03-27 Thread Rob Mayoff
+-- On Mar 27, Rob Mayoff said: > A correctly working realpath() must use chdir() at least sometimes. > System calls only accept paths up to PATH_MAX bytes long, but the > filesystem allows us to construct paths of any length. The only reliable > way to access those long paths

Re: [AOLSERVER] AOLserver 4.x and MacOSX: cwd problem

2003-03-27 Thread Rob Mayoff
+-- On Mar 27, Zoran Vasiljevic said: > Tcl. This solves this issue cleanly. The ultimate fix, of course, is > to modify the Darwin realpath() to behave better. I wonder what you mean by "behave better". Does realpath() leave the cwd changed? Or do you simply mean that you don't want realp

Re: [AOLSERVER] ADP: are if's possible?

2003-03-16 Thread Rob Mayoff
+-- On Mar 16, Jim Davidson said: > 1. Current simple script block isolated mode. > 2. Connected script blocks via use of the Tcl_CommandComplete checks (Rob's > idea) > 3. Full compile into a single script in the style of ASP. It's easy to do #3 using #2 on a per-page basis. Just put "<%

Re: [AOLSERVER] ADP: are if's possible?

2003-03-15 Thread Rob Mayoff
+-- On Mar 15, Kevin Lawver said: > Is there some super-good reason why this very nice feature hasn't been > included in the default fancy parser? The idea was to have standalone code segments, so that if a code segment has an error, the remainder of the page can still be rendered. I sugg

Re: [AOLSERVER] IP vs ServerName and ns_perm

2003-03-07 Thread Rob Mayoff
+-- On Mar 7, Franclim Bento said: > But now I need to move it to another machine and the DNS server that the users are > using don't know this new machine. When I try to reach my web pages indicating the > servername (with an alias in the hosts file) everything works fine. But if I use t

Re: [AOLSERVER] AOLserver Authentication and Applet

2003-03-06 Thread Rob Mayoff
+-- On Mar 6, Karthik said: > I need to pass the username that the user enters to my java code as an applet > parameter. How can I do it ? Instead of typing in "hostname:port/xyz.html", you should type in "hostname:port/xyz.tcl". Make xyz.tcl a Tcl program that generates the HTML that load

Re: [AOLSERVER] broken images with requests from pre5.5 IE browsers

2003-02-26 Thread Rob Mayoff
+-- On Feb 26, Elizabeth Thomas said: > We are having problems here with an international site returning broken > images from https requests from older IE browsers. Define "international site". Do you have non-ASCII characters in your URLs? Does your access log indicate that IE is asking f

Re: [AOLSERVER] Root-server switches from BIND to NSD.

2003-02-25 Thread Rob Mayoff
+-- On Feb 25, Patrick Spence said: > I'd certainly be willing to use it here :) it would be a lot easier to > administer than bind is for me.. There are alternatives to BIND that many consider easier to administer. I. To remove yourself from this list: Send a message to "[EMAIL PROTE

Re: [AOLSERVER] Root-server switches from BIND to NSD.

2003-02-25 Thread Rob Mayoff
+-- On Feb 25, Dossy said: > Added bonus would be a web interface for viewing zones and editing > them, which would persist changes back down to the DBMS. Note that a web interface to your DNS data doesn't require that AOLserver respond to DNS requests. I. To remove yourself from this l

Re: [AOLSERVER] Root-server switches from BIND to NSD.

2003-02-25 Thread Rob Mayoff
+-- On Feb 25, Tom Ivar Helbekkmo said: > Really cool, in fact! If it were efficient enough, it would save the > trouble of generating BIND zone files from an RDBMS; There are already servers available that can serve DNS directly from MySQL or Postgres. They are not nearly as fast as a de

Re: [AOLSERVER] Tcl bytecode caching for Tcl pages

2003-02-23 Thread Rob Mayoff
+-- On Feb 23, Don Baccus said: > The code's been used successfully in many sites so seems stable. But has it been proven to be effective? I haven't seen any numbers. I helped implement it, but I don't recall that we (ArsDigita) ever did a serious analysis of whether it improved performa

Re: [AOLSERVER] Does 4.0 cache tcl page object code?

2003-02-17 Thread Rob Mayoff
aolserver/tcl/file.tcl. > I believe Rob Mayoff added that bytecode cacheing feature to 3.3+ad13 > (actually earlier, I think to 3.3+ad12), but I was never clear on just > where in the code he implemented it, so I can't just check by > comparing the code against 4.0... That is i

Re: [AOLSERVER] 4.0 ClientData arg ??

2003-02-15 Thread Rob Mayoff
+-- On Feb 15, Dossy said: > In 3.x, it seems the ClientData parameter is either 's' or 'g' to > indicate setter or getter. Evil hackery. :-) Actually, in 3.x, the 's' has no meaning to the code. NsTclVSetCmd does not look at its ClientData (which is why it's named "dummy" in that functi

Re: [AOLSERVER] aolserver 3.3ad13 on RedHat 8.0

2003-02-12 Thread Rob Mayoff
+-- On Feb 12, Jerry Asher said: > I would think that if I am really pushing a stack frame onto a stack, > then I presumably have to know where the base of the stack is and the > top of stack. You don't need to know where the base of the stack is normally. If you did, you'd have to keep it

Re: [AOLSERVER] aolserver 3.3ad13 on RedHat 8.0

2003-02-12 Thread Rob Mayoff
+-- On Feb 12, Jerry Asher said: > At any rate, I had thought we were talking about, for the most part, > rare occasions when new threads are created. I thought we were talking about checking SP every time something (like a stack frame) is pushed onto the stack. That means you have to know

Re: [AOLSERVER] aolserver 3.3ad13 on RedHat 8.0

2003-02-12 Thread Rob Mayoff
+-- On Feb 12, Jerry Asher said: > I am trying to understand where the thread-specific limit is involved > but I can't. Heap--><--stack3 <--stack2 <--stack1 Stack 3's limit is the top of the heap. Stack 2's limit is the bottom of stack 3. Stack 1's limit is the bottom of stack 2

Re: [AOLSERVER] aolserver 3.3ad13 on RedHat 8.0

2003-02-12 Thread Rob Mayoff
+-- On Feb 11, Jerry Asher said: > It might not solve the problem of one thread still corrupting > another thread's memory or stack, but assuming a page was larger than > several stack frames, it would certainly catch most typical stack > overflows. Wouldn't it? Yes, it would catch mo

Re: [AOLSERVER] aolserver 3.3ad13 on RedHat 8.0

2003-02-11 Thread Rob Mayoff
+-- On Feb 11, Jerry Asher said: > Are you really saying you cannot imagine how in a multithreaded > environment one can automatically and efficiently extend the stack? Depends on what you mean by "extend the stack". A single-threaded program has a heap and a stack in a single address spa

Re: [AOLSERVER] aolserver 3.3ad13 on RedHat 8.0

2003-02-11 Thread Rob Mayoff
+-- On Feb 11, Jerry Asher said: > Sigh, that must've been some sort of computing golden age Oh for > the renaissance! Yep, the golden age - before multithreaded programming.

Re: [AOLSERVER] Post chat reminders a day earlier?

2003-02-07 Thread Rob Mayoff
+-- On Feb 7, Nathan Folkman said: > In a message dated 2/7/03 2:31:40 AM, [EMAIL PROTECTED] writes: > > As an FYI - digest customers of this list get the reminder about the chat > > on the midnight AFTER the chat .. > > Easy enough to fix. Thanks for the feedback. When I first started sen

Re: [AOLSERVER] Offtopic dumb security policy example, at um, aol

2003-01-27 Thread Rob Mayoff
+-- On Jan 27, Jerry Asher said: > So I figure out Dossy's aolscreen name, I cons together your daughters > name and guess your password, and then I get to steal your email. A secure interface for changing your forwarding address must verify that you control both the old address (if it has

Re: [AOLSERVER] ns_mutex is likely causing our AOL web server to hung

2003-01-27 Thread Rob Mayoff
+-- On Jan 27, Seena Kasmai said: > sorry, there is no $ sign in the actual code. > > So, is it worth trying to substitute ns_share with nvs stuff (nsv_set & > nsv_get) to see if the problem goes away ? Your most effective action, if you want to maximize the utility of the advice from this

Re: [AOLSERVER] Is Aolserver vulnerable?

2003-01-23 Thread Rob Mayoff
+-- On Jan 23, Jim Davidson said: > Are byte ranges useful outside big static file downloads? I don't know. One level of possibly useful support would be simply to have AOLserver parse the byte-range request and make it available via an API. For example, a site that stores large binary o

Re: [AOLSERVER] Is Aolserver vulnerable?

2003-01-23 Thread Rob Mayoff
+-- On Jan 23, Nathan Folkman said: > What portions do you think would make the most sense to support, and what > benefits would supporting those features provide? Keep-alive enabled by default - allows persistent client/server connections without negotiation. Chunked transfer coding - al

Re: [AOLSERVER] adp parsers and aolserver 4.0

2003-01-20 Thread Rob Mayoff
+-- On Jan 20, Jim Davidson said: > No, it doesn't. Each "chunk" of ADP must be a valid Tcl script as they're > all executed independently. A parser which could handle the above would > basically convert the whole page into a single script. Downside with that > solution is an error anywh

Re: [AOLSERVER] high ASCII in regexp (AOLserver 3.5.1 & tcl8.4.1)

2002-11-22 Thread Rob Mayoff
+-- On Nov 22, Dossy said: > This doesn't make sense. How do you explain this: [deletia] > $u is getting set to what I'd expect it to, but $m isn't. Tcl stores strings internally in UTF-8. Sometimes it converts strings to UCS-16 (16-bit characters), for example to do regexp matching, an

Re: [AOLSERVER] high ASCII in regexp (AOLserver 3.5.1 & tcl8.4.1)

2002-11-22 Thread Rob Mayoff
+-- On Nov 22, Dossy said: > Any idea what I'm doing wrong? You're typing iso8859-1 into nscp. nscp doesn't use a Tcl channel for input, so it does no charset translation on that input. Hence the system encoding is irrelevant. You must only send UTF-8 to nscp, and you'll only get UTF-8 bac

Re: [AOLSERVER] Reminder: Weekly Chat Today (Thursday, November 20, 2002)

2002-11-21 Thread Rob Mayoff
+-- On Nov 21, Steve Manning said: > I think that you possibly mean 19:00 UTC not 18:00. I'm sitting here in > the chat room at 18:30 GMT and its very quiet. :o) People never figured out that the chat time was independent of DST back when I was sending out the reminder, either.

Re: [AOLSERVER] using aolserver for mail

2002-11-18 Thread Rob Mayoff
+-- On Nov 18, Gabriel Ricard said: > Or am I just nuts? You'd be nuts to pursue this path without at least trying other mail servers. I recommend qmail.

Re: [AOLSERVER] Reminder: Weekly Chat Today (Thursday, November 14, 2002)

2002-11-14 Thread Rob Mayoff
The chat announcement specifies the time in UTC to eliminate any ambiguity about time zones and Daylight Saving Time.

Re: [AOLSERVER] AOLserver Project Update

2002-11-11 Thread Rob Mayoff
+-- On Nov 11, Peter M. Jansson said: > I'm happy to stand corrected regarding the implementation, but for someone > writing Tcl code, is there a meaningful difference between my flawed > conceptual model and the implementation? "{" is a string but not a list.

Re: [AOLSERVER] HTTP 1.1 Pipelining.

2002-11-11 Thread Rob Mayoff
+-- On Nov 11, Patrick Spence said: > Hopefully if this is ever implemented it would be a toggleable item so we > aren't forced to have it available... You could set up a preauth filter that removes Range header from ns_conn headers. But I don't know why you'd want to disable it.

Re: [AOLSERVER] HTTP 1.1 Pipelining.

2002-11-10 Thread Rob Mayoff
+-- On Nov 10, Nathan Folkman said: > HTTP 1.1 is not currently supported, and so far there are no plans for adding > support for it to the 4.0 version. To be honest it's been a while since I've > looked at the 1.1 spec - what's it all about, and what benefits would there > be if we were to

Re: [AOLSERVER] URL case insensitivity.

2002-11-08 Thread Rob Mayoff
+-- On Nov 8, Lamar Owen said: > This may be an obvious one, but I'm trying to move a site over from an IIS > host to an AOLserver one, and the web pages link to mixed-case filenames. > However, the filenames are all actually lower case, meaning I get a lot of > 404's. Write a module that

Re: [AOLSERVER] malloc replacement libraries?

2002-11-07 Thread Rob Mayoff
+-- On Nov 7, Peter M. Jansson said: > On Wednesday, November 6, 2002, at 11:03 PM, Nathan Folkman wrote: > > > What are the major differences that would need to be bridged between the > > stock 3.5.1 code base and 3.3+ad13 > > The ACS version of AOLserver has i18n support and changes in th

Re: [AOLSERVER] malloc replacement libraries?

2002-11-06 Thread Rob Mayoff
+-- On Nov 6, Andrew Piskorski said: > That is good advice in general, but probably isn't relevent for my > particular problem. I want to make the vendor code more robust by > sliding a different malloc in underneath it, not simply wall it off in > its own sandbox and let it corrupt itself

Re: [AOLSERVER] segfault in ns_malloc, _smalloc

2002-10-24 Thread Rob Mayoff
+-- On Oct 25, Andrew Piskorski said: > What could possibly be causing it to segfault in _smalloc, of all > places? Heap corruption. Segfaults in malloc or free are virtually always due to heap corruption. Probably something is overflowing a buffer, or freeing something twice, or writing t

Re: [AOLSERVER] Extended ASCII (accented) characters rendered as Atilde + proper-char-minus-64

2002-10-15 Thread Rob Mayoff
+-- On Oct 15, Jeff Hobbs said: > My guess is that whatever finally outputs (to stdout?) isn't doing > the conversion correctly. Perhaps 'fconfigure stdout' will show > something not correct? The output doesn't go to stdout. Indeed, the output doesn't go through the Tcl channel mechanism

Re: [AOLSERVER] Ns_TlsAlloc needs Ns_MasterLock ?

2002-10-14 Thread Rob Mayoff
+-- On Oct 14, Andrew Piskorski said: > I am kind of confused, as a lot of the code in AOLserver DOES use > Ns_MasterLock like that, but some of it does not, and nothing in the > docs suggest that you need to or should. > > E.g., aolserver/nsd/adp.c and aolserver/nsd/dbinit.c both use > Ns

Re: [AOLSERVER] Sharing Files Between Interpreters

2002-09-05 Thread Rob Mayoff
+-- On Sep 5, Sunil Samuel said: > But tcl does not have a detach command and aolserver complaints that the detach > command is not found. > > Any ideas? You can use my dqd_utils module. It provides attach and detach commands.

Re: [AOLSERVER] performance of ns_write?

2002-08-14 Thread Rob Mayoff
+-- On Aug 14, Andrew Piskorski said: > Or is it just that ns_write will block if the > socket send buffer is full? I believe that's the case. ns_write just puts the data into the kernel's socket buffer and returns immediately if possible. > And if so, how do I find out how big my > TCP

Re: [AOLSERVER] connection thread keeps running?

2002-08-14 Thread Rob Mayoff
+-- On Aug 14, Andrew Piskorski said: > In AOLserver 3.x (and 3.3+ad13 in particular), I believe that a > connection thread continues to execute until it eiter finishes all the > code it's running or errors out. The thread never "knows" that the > client is no longer waiting for a request

Re: [AOLSERVER] Seeking ns_cache configuration advice

2002-07-31 Thread Rob Mayoff
+-- On Jul 31, Dave Siktberg said: > Using google I did find this location serving the documentation page, > which will whet your appetite until you get the code: > > http://java.cms.livjm.ac.uk/local/as23docs/html/tapi-c22.htm Unfortunately, that's not the documentation for my module. AO

Re: [AOLSERVER] Seeking ns_cache configuration advice

2002-07-30 Thread Rob Mayoff
+-- On Jul 30, Jim Wilcoxson said: > I'm not complaining, because this isn't particularly important to me, > but I can't imagine a relatively new AOLServer developer figuring any > of this out. I'm lost, and I've been developing on it for 8 years. The ns_cache module was part of the ArsD

Re: [AOLSERVER] Seeking ns_cache configuration advice

2002-07-30 Thread Rob Mayoff
Jim, are you aware that AOLserver 3 has C API for caches that automatically flush outdated entries and automatically evict LRU entries to limit memory use, and that there's an ns_cache module that provides a Tcl layer for the C API? +-- On Jul 30, Jim Wilcoxson said: > Just roll your own

[AOLSERVER] weekly chat

2002-07-18 Thread Rob Mayoff
I haven't actually joined the weekly chat in months, as I am no longer working on AOLserver and am busy with other things. Therefore I'm going to turn off the program that sends out the weekly-chat reminder message. Anyone who wishes to take it over can e-mail me for a copy of the shell script tha

Re: [AOLSERVER] ns_duphigh error

2002-06-20 Thread Rob Mayoff
Probably means you have too many open file descriptors. Maybe you could just get away with increasing the per-process file limit. How you do that may depend on the system. You might start by trying 'ulimit -n 4096' in the script that starts nsd. +-- On Jun 20, [EMAIL PROTECTED] said: > Ha

Re: [AOLSERVER] AOLserver segfaulting

2002-06-03 Thread Rob Mayoff
+-- On Jun 3, Jeremy Collins said: > I am having some trouble with our AOLserver setup. It crashes > frequently under extremely light load. Below is the backtrace. It > appears that something in libc6 (gethostbyname) or oci (OCIServerAttach) > is causing the problem, in particular when

Re: [AOLSERVER] AOLserver Oracle Driver Improvements

2002-05-30 Thread Rob Mayoff
+-- On May 30, Andrew Piskorski said: > I believe the latest Oracle driver is version 2.6, from c. June 11 > 2001. At least, that's the version I have, and it came with the > AOLserver 3.3+ad13 from ArsDigita. As I recall, I never packaged version 2.6 separately from AOLserver 3.3+ad13.

Re: [AOLSERVER] AOLserver Oracle Driver Improvements

2002-05-30 Thread Rob Mayoff
+-- On May 30, Jeff Hobbs said: > How far apart is this from the general oratcl extension? Very, in the sense that it is a completely different codebase (as far as I know) and implements the AOLserver database driver API.

Re: [AOLSERVER] AOLserver Oracle Driver Improvements

2002-05-30 Thread Rob Mayoff
+-- On May 30, Jeremy Collins said: > Who currently maintains the AOLserver Oracle driver? No one, as far as I know. I was the last maintainer at ArsDigita. Since I no longer use AOLserver professionally and do very little with it in my spare time, and since the Oracle driver source code

Re: [AOLSERVER] bug in ns_cond broadcast?

2002-05-22 Thread Rob Mayoff
+-- On May 23, Todd Volkert said: > nsv_set global cond [ns_cond create] > nsv_set global mutex [ns_mutex create] > > proc foo {} { > set cond [nsv_get global cond] > set lock [nsv_get global mutex] > ns_cond wait $cond $lock > } > > proc bar {} { > ns_cond boadca

Re: [AOLSERVER] AOLServer corrupting Form data

2002-05-09 Thread Rob Mayoff
+-- On May 9, atfrost said: > Tedious stuff, eh? But I'm not convinced that this isn't a bug. Oh, I'm sure it's a bug. I'm just saying that it's probably not something easily solved, or something that can be solved simply by implementing published standards. > As far as I can tell, the

Re: [AOLSERVER] AOLServer corrupting Form data

2002-05-09 Thread Rob Mayoff
This happens due to various factors. AOLserver didn't historically do anything about character sets, but Tcl 8.1 (and later) assumes that strings in memory are in UTF-8 and performs conversions at its boundaries. AOLserver puts stuff in Tcl's memory without doing that conversion. And HTTP and HT

Re: [AOLSERVER] Ns_TclEval / ns_sendmail documentation

2002-05-09 Thread Rob Mayoff
+-- On May 9, Jason Saunders said: > If the " " are there for the gaps between to, from and subject, why isn't > there one between "ns_sendmail" and to? Because the example code is buggy. > The other thing that puzzles me is that the documentation for > NS_DStringVarAppend says the list

Re: [AOLSERVER] Reminder: AOLserver weekly chat tomorrow

2002-05-03 Thread Rob Mayoff
Has the listserv been down? I don't know why else this would have taken two days to be sent. +-- On May 1, [EMAIL PROTECTED] said: > The AOLserver weekly chat takes place tomorrow, 2002-05-02, and > every Thursday. Common topics include AOLserver, Tcl, SQL, ACS, > and general web-related

Re: [AOLSERVER] setting password in nsperm's password file

2002-04-26 Thread Rob Mayoff
+-- On Apr 26, Janine Sisk said: > How are we supposed to generate the password for modules/nsperm/passwd? I > tried using crypt and I tried making a user via adduser and copying their > password out of /etc/shadow, but neither worked. Older users copied from an > old users.dat file do w

Re: [AOLSERVER] Oracle connections going defunct

2002-04-25 Thread Rob Mayoff
+-- On Apr 25, Janine Sisk said: > Well... I concluded that I was not using BEQUEATH because I looked at > listener.ora, sqlnet.ora and tnsnames.ora and saw only "PROTOCOL = TCP" and > "PROTOCOL = IPC". But I just noticed that when I do a ps, I see You need to set your datasource properl

Re: [AOLSERVER] Oracle connections going defunct

2002-04-23 Thread Rob Mayoff
+-- On Apr 23, Barry Books said: > I have not run on Linux in a while but when I did I remember having to set > the database handle timeout to a very large number otherwise I had this > problem. I think there is a bug in the database driver on Linux since I > don't have this problem on Sol

Re: [AOLSERVER] C based modules, tcl interps and memory allocators

2002-04-16 Thread Rob Mayoff
> Also, is there a significant difference between sequential and random reads > within an Intel processor cache? Whether the difference is significant really depends on your application. The processor loads an entire 32-byte level-1 cache line whenever it needs any byte from that line. The data i

Re: [AOLSERVER] C based modules, tcl interps and memory allocators

2002-04-16 Thread Rob Mayoff
+-- On Apr 16, Jason Saunders said: > Well, it seems the Ns_Cache functions weren't what I was looking for, but I > have an idea of what might work... Have you prototyped any of this code to determine whether you even need to worry about this? Premature optimization is the root of all ev

Re: [AOLSERVER] Ns_Cache questions (Was Re: C based modules, tcl interps and memory allocators)

2002-04-15 Thread Rob Mayoff
+-- On Apr 15, Jason Saunders said: > Pete's idea of using the Ns_Cache() functions looks ideal. As I understand > it, when you call Ns_CacheCreateSz(), you specify the maximum size of the > cache that you want and then Ns_CacheMalloc() allocates memory from that > cache. I then have some

Re: [AOLSERVER] Problems with nsd 2.3.3 on RH 7.2

2002-04-10 Thread Rob Mayoff
+-- On Apr 10, Janine Sisk said: > Wait, I take that back. Right now there are 42 nsd processes running but > only 24 showing up as connected in netstat. So what does that mean? Well, it may mean that you have in the neighborhood of 16 idle connection threads. What are your minthreads,

Re: [AOLSERVER] Problems with nsd 2.3.3 on RH 7.2

2002-04-10 Thread Rob Mayoff
+-- On Apr 10, Lamar Owen said: > 7.2's glibc is so much newer than 6.2's that the linkage may be broken. > Binaries linked/compiled under 6.2 usually do _not_ work properly on 7.2. > Even with the compat libraries installed. The reason seems to be kernel 2.4. To use some JVMs on 2.4, yo

Re: [AOLSERVER] Problems with nsd 2.3.3 on RH 7.2

2002-04-10 Thread Rob Mayoff
+-- On Apr 10, Tom Jackson said: > I would try using daemontools to start and restart AOLserver. This tool > should correctly handle killing all children of the main process. It probably won't. It sends signals only to its direct child. > I have one process I control with daemontools usi

Re: [AOLSERVER] Digest authorization / WebDAV

2002-04-09 Thread Rob Mayoff
+-- On Apr 9, Zoran Vasiljevic said: > So what should I do ? It seems to me that you would be best served by a module, in either Tcl or C, that runs as a preauth or postauth filter and implements Basic and Digest authentication and IP/hostname checking. I don't see much point in trying t

Re: [AOLSERVER] Digest authorization / WebDAV

2002-04-09 Thread Rob Mayoff
+-- On Apr 9, Goodwin Scott S GS-13 96 CG/SCTOB said: > You could use a single server but only allow DAV access on a separate > nsopenssl port. Could even use client PKI certs on that port to make the > authentication more secure. Then deny any kind of DAV access on any other > nssock or n

Re: [AOLSERVER] Digest authorization / WebDAV

2002-04-09 Thread Rob Mayoff
+-- On Apr 9, Zoran Vasiljevic said: > If I'm not mistaken (correct me if I'm wrong, please), > but, if I do not load the ns_perm module then: > > - I do not get the "allowuser" functionality (or is it "ns_perm allowuser"?) > - I lose all other user's hostname (ip/domain) checking >

Re: [AOLSERVER] Digest authorization / WebDAV

2002-04-09 Thread Rob Mayoff
+-- On Apr 9, Zoran Vasiljevic said: > On Monday 08 April 2002 22:04, Dossy wrote: > > > > > Could auth schemes not be implemented via trace filters? > > > > Well, almost... Actually, it's can't. A trace filter runs after the main request handler - too late to block access. A preauth or

Re: [AOLSERVER] how to set cookies

2002-04-04 Thread Rob Mayoff
+-- On Apr 5, ÕÅÏþº£ said: > Excuse me, how can i set the cookies use aolserver c api? > I want set two params : domain and one id If you mean that you want to set a cookie named "domain": you cannot. The word "domain" cannot be used as the name of a cookie. Try using something like "myd

Re: [AOLSERVER] server reload function

2002-03-10 Thread Rob Mayoff
+-- On Mar 11, å¼ æ^ٓ海 said: > I have my AOLserver in inittab already. > But i should maintain many online user's information and i should not stop the >sevice. You can enable and use the ns_eval function to make all threads re-source a .tcl file. You cannot change ns_config data af

  1   2   3   >