On 2004.05.13, Alberto Marchesini <[EMAIL PROTECTED]> wrote:
> Hi all!
>     I'm using aolserver 4.0.1 with tcl 8.4.5.
>     Running this simple code in an adp page:
>       ns_respond -status 505 -string "internal error"
>
>     the server crash (connection thread crash, you can see [defunct] process
> with ps). Adding -type "text/plain" all is ok.

Does this crash if you define ns/mimetypes "default" param in your
config .tcl file?

I think if -type isn't specified and ns/mimetypes "default" isn't set,
ns_respond should throw a Tcl error.  Silently using "text/plain" as the
default if one isn't set doesn't seem like the right thing to do.

However, crashing the server if ns/mimetypes "default" isn't set *AND*
-type isn't passed is a bug.  That should be fixed: again, I think it
should throw a Tcl error.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to