From: petrus v. <pet...@si...> - 2000-11-16 10:25:09
|
Hi Brent, The fix in httpd.tcl seems to work. At least no error entries in the error file. CGI is not 100% stable. Often I get " ....contained no data" on the screen and the cgi program ( a with tclpro wrapped tcl script) that wants to write to std out writes on stderr: error writing "stdout": broken pipe while executing "puts "Content-Type: text/html"" (procedure "bugtEditScreen" line 29) invoked from within "bugtEditScreen $cgi(SELECTION) " ("Edit Entry" arm line 1) invoked from within "# Compiled -- no source code available error "called a copy of a compiled script"" invoked from within "tbcload::bceval { TclPro ByteCode 1 0 1.3 8.3 42 0 313 45 0 0 212 0 4 42 42 -1 -1 313 w0E<!-fSs!&-<<!,l4pv(0*!!(NA9v.EW<!3)Ppv.o=6#4;tl#.EW<!9Atpv2>UN..." (file "bugt.tbc" line 7) error writing "stdout": broken pipe while executing "puts "Content-Type: text/html"" (procedure "bugtEditScreen" line 29) invoked from within "bugtEditScreen $cgi(SELECTION) " ("Edit Entry" arm line 1) invoked from within "# Compiled -- no source code available error "called a copy of a compiled script"" invoked from within "tbcload::bceval { TclPro ByteCode 1 0 1.3 8.3 42 0 313 45 0 0 212 0 4 42 42 -1 -1 313 w0E<!-fSs!&-<<!,l4pv(0*!!(NA9v.EW<!3)Ppv.o=6#4;tl#.EW<!9Atpv2>UN..." (file "bugt.tbc" line 7) error writing "stdout": broken pipe while executing "puts "Content-Type: text/html"" (procedure "bugtEditScreen" line 29) invoked from within "bugtEditScreen $cgi(SELECTION) " ("Edit Entry" arm line 1) invoked from within "# Compiled -- no source code available error "called a copy of a compiled script"" invoked from within "tbcload::bceval { TclPro ByteCode 1 0 1.3 8.3 42 0 313 45 0 0 212 0 4 42 42 -1 -1 313 w0E<!-fSs!&-<<!,l4pv(0*!!(NA9v.EW<!3)Ppv.o=6#4;tl#.EW<!9Atpv2>UN..." (file "bugt.tbc" line 7) tclhttpd creates following entries in the errorfile. [16/Nov/2000:10:19:22] sock8 error writing "sock8": broken pipe /oca/a/SXC-OCA.jpg [16/Nov/2000:10:19:22] sock8 error flushing "sock8": broken pipe /oca/a/SXC-OCA.jpg [16/Nov/2000:10:21:19] sock8 timeout [16/Nov/2000:10:21:19] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:22:00] sock8 timeout [16/Nov/2000:10:22:00] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:23:30] sock8 timeout [16/Nov/2000:10:23:30] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:23:41] sock8 timeout [16/Nov/2000:10:23:41] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:24:42] sock8 timeout [16/Nov/2000:10:24:42] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:24:58] sock8 timeout [16/Nov/2000:10:26:04] sock8 timeout /oca/a/bugt.cgi [16/Nov/2000:10:26:37] sock8 timeout [16/Nov/2000:10:26:37] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:26:45] sock8 timeout [16/Nov/2000:10:26:45] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:26:59] sock8 timeout [16/Nov/2000:10:26:59] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:28:04] sock8 timeout [16/Nov/2000:10:28:04] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:28:05] sock8 timeout [16/Nov/2000:10:28:05] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:28:23] sock8 timeout [16/Nov/2000:10:28:23] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:29:09] sock8 timeout [16/Nov/2000:10:29:09] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:29:17] sock8 timeout [16/Nov/2000:10:29:17] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:35:09] sock8 timeout [16/Nov/2000:10:35:19] sock8 timeout [16/Nov/2000:10:35:19] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:36:13] sock9 timeout [16/Nov/2000:10:36:13] sock9 CloseError {can not find channel named "sock9"} [16/Nov/2000:10:36:24] sock9 timeout [16/Nov/2000:10:36:24] sock9 CloseError {can not find channel named "sock9"} [16/Nov/2000:10:36:35] sock9 timeout [16/Nov/2000:10:36:35] sock9 CloseError {can not find channel named "sock9"} [16/Nov/2000:10:38:00] sock8 timeout /oca/b/bugt.cgi [16/Nov/2000:10:39:54] sock8 timeout [16/Nov/2000:10:39:54] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:39:59] sock8 timeout [16/Nov/2000:10:39:59] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:40:08] sock8 timeout [16/Nov/2000:10:40:08] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:46:05] sock8 timeout [16/Nov/2000:10:46:17] sock8 timeout [16/Nov/2000:10:46:17] sock8 CloseError {can not find channel named "sock8"} [16/Nov/2000:10:47:33] sock9 timeout [16/Nov/2000:10:47:33] sock9 CloseError {can not find channel named "sock9"} [16/Nov/2000:10:47:49] sock8 timeout I grepped on tclhttpd lib and found out there exist +/- 4 timers in the tclhttpd system 3 in httpd.tcl and 1 in cgi.tcl I have such feeling, that the triggered timers go off later falling in the next transaction with the same socket-id. Start CGI CGI - END Timer not cancelled in each case Start CGI Timer goes off CGI end CGI programm sends to stdout No data As said I guess. Can you tell me a little bit more about the origin of the timeout messages. Once a file is mentioned once not (see above). Environment: solaris2.5.1 tclhttpd-dist3.2.0 (standard config) + cgi + httpd patch Thanks Piet -- #-------With best regards, Mit freundlichen Gruessen, Met vriendelijke groet, ------ # Piet Vloet # Siemens AG Austria # Boschstrasse 10 Phone : +43-51707-42906 # A-1190 Vienna Fax : +43-51707-52606 # mailto:pet...@si... WWW:http://www.siemens.at |