Urk - wish has weird file descriptors.  Any occurrence of
puts stderr
should be replaced with
Stderr
that has a catch around the puts.

>>>"David LeBlanc" said:

 > error writing "stderr": bad file number
 >     while executing
 > "Thread_Send $id  {puts stderr "Thread  starting."}"
 >     (procedure "Thread_Start" line 4)
 >     invoked from within
 > "Thread_Start"
 >     (procedure "Thread_Dispatch" line 12)
 >     invoked from within
 > "Thread_Dispatch $sock  [concat $Url(command,$prefix) [list $sock $suffix]]"
 > 
 > If you just double-click on httpd.tcl (which invokes wish83), then IE still
 > reports garbage from the server - I'm guessing that the server never returns
 > anything because it's caught in this error.
 > 
 > I'm not sure why it's able to return the error page in debug mode, but it's
 > a good thing :)

The server handles some requests in the main thread - and does its
error handling there.

 > Other problems i'm having:
 > 
 >      torture.tcl and bigpost.tcl both return errors and don't hit the server
 > more then once for some reason..
 > 
 > bigpost returns:
 > [K:/tcl/apps/tclhttpd3.0.0/bin/test]% tclsh83
 > % source bigpost.tcl
 > Posting 187779 bytes to
 > Unsupported URL:

OK - there is an obvious bug in bigpost.tcl in the case of no arguments.
Change "set server" to "set url"

 > (I changed the default url internally to http://ticktick:8015 which is my
 > local machine.)
 > 
 > Torture.tcl returns:
 > [K:/tcl/apps/tclhttpd3.0.0/bin/test]% tclsh83
 > % source torture.tcl
 > Calibrating clock clicks
 > 1000.0
 > % Iterate http://ticktick 8015 1000
 > Starting 1000 fetches
 > Only -998 fetches started
 > (couldn't open socket: invalid argument)
 > 2.407 sec 0 bytes -998 fetches
 > -2.41182364729 ms/fetch
 > 0.0 bytes/sec
 > -414.624013295 fetches/sec
 > 0 bytes/fetch

Call it this way:

Iterate ticktock 8015 1000 /index.html

--      Brent Welch     <[EMAIL PROTECTED]>
        http://www.scriptics.com
        Scriptics: The Tcl Platform Company


Reply via email to