Support Requests item #450473, was opened at 2001-08-13 06:22
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=203152&aid=450473&group_id=3152

Category: Scripting: Tcl/ADP
Group: aolserver3_3_1
Status: Open
Resolution: None
Priority: 5
Submitted By: Guan Yang (guanix)
>Assigned to: Kriston Rehberg (kriston)
Summary: Resource temporarily unavailable

Initial Comment:
Every time I use ns_conncptofp or ns_writecontent, I get the <code>Error writing 
content: resource temporarily unavailable
    while executing
"ns_writecontent $fp"</code> error. I have even tried opening the file with NOBLOCK. I 
don't get this error when I just use <code>puts</code>.
<p>
My code looks like this:
<pre>
    set filename [ns_tmpnam]
    ns_log Debug "filename: $filename"
    set fp [open $filename "w"]
#   puts $fp hejsa
    ns_log Debug "fp w: $fp"
    ns_writecontent $fp
    ns_log Debug "fp w: $fp"
    close $fp
    ns_log Debug "fp w closed"
    set fp [open $filename "r"]
    ns_log Debug "fp r: $fp"
    set content [read $fp]
    ns_log Debug "content: $content"
    close $fp
    ns_log Debug "fp r: closed"
    ns_unlink $filename
    ns_log Debug "$filename unlinked"

    ns_return 200 text/html $content
</pre>
<p>
My HTML is a simple form that POSTs to the URL with some simple parameters.

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=203152&aid=450473&group_id=3152

Reply via email to