I realized that i need to call ns_conn close after ns_write to close the
socket.

________________________________

From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf
Of JAMSHED QURESHI
Sent: Friday, July 13, 2007 11:59 AM
To: AOLSERVER@LISTSERV.AOL.COM
Subject: [AOLSERVER] Ns_write doesn't seem to close the socket


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.

Reply via email to