ns_write is designed to be called multiple times so you can "stream"
content to the client. It is not designed to close the connection
after one call!
Have you tried "ns_conn close"?
Cheers,
Bas.
On 13/07/2007, at 9:59 AM, JAMSHED QURESHI wrote:
Hi,
Upon receiving the request i'm calling ns_write like so:
proc request {} {
set retstring "HTTP/1.0 201 Created\nMIME-Version: 1.0\nDate:
Fri, 13 Jul 2007 08:46:46 GMT\nServer: AOLserver/4.0.10\nContent-
Type: application/x-tcl-list\nContent-Length: 77\nConnection: close
\n\nSUCCESS"
ns_write $retstring;
# do content processing here
}
Http client makes the request, and receives the reply but the
connection is not closed until another 20 seconds (timeout set for
http client).
kind regards,
jamshed
--
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.
--
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.