Received: (qmail 9082 invoked by uid 2012); 22 Jan 1999 08:50:28 -0000 Message-Id: <19990122085028.9081.qmail@hyperreal.org> Date: 22 Jan 1999 08:50:28 -0000 From: jaya mistry Reply-To: jaya_mistry@ins.com To: apbugs@hyperreal.org Subject: Server disconnects session X-Send-Pr-Version: 3.2 >Number: 3746 >Category: os-solaris >Synopsis: Server disconnects session >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: support >Submitter-Id: apache >Arrival-Date: Fri Jan 22 02:10:01 PST 1999 >Last-Modified: Mon Jan 25 21:40:01 PST 1999 >Originator: jaya_mistry@ins.com >Organization: >Release: 1.3.3 >Environment: Solaris 2.5.1 O.S SunOS large 5.5.1 Generic_103640-21 sun4u sparc SUNW,Ultra-60 Latest patches. >Description: Trying to run a looking glass script that performs an rsh request to a router. When the perl script is run from the command line we get complete results, but when we run the script from the browser we only get the first line of the output displayed. Tried setting the KeepAlive value from 15sec to 300sec and Timeout value to 300sec but still get the same result. >How-To-Repeat: Its going to be difficult if you dont have a router. But here is a cut down version of the script :- #!/usr/local/bin/perl $|=1 ; @data = `/usr/bin/rsh routername sh ip bgp sum`; print "Content-type: text/html\n\n"; print "
\nThe array is: ",$#data,"long.\n\n@data\n\n";
foreach $dat (@data){
 print "$dat\n";
}
print "
\n"; >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Fri Jan 22 09:34:05 PST 1999 State-Changed-Why: This is not an issue with the web server, but an issue with Unix and perl programming. Various things work differently under an interactive shell and a non-interactive shell, but we really don't have the resources to help people with how to write their CGIs. From: Marc Slemko To: Mistry Jaya Cc: Apache bugs database Subject: Re: os-solaris/3746: Server disconnects session Date: Mon, 25 Jan 1999 21:35:18 -0800 (PST) On Mon, 25 Jan 1999, Mistry Jaya wrote: > > This is an issue with the web server because the perl script > works from the command line prompt. > > We also placed a sniffer on the network it points to the http server > closing the connection. The spawn child is being closed by the server > too quickly. You are not running a "program", you are running a CGI. There are specific requirements for a CGI. The way things work from an interactive shell versus a non-interactive shell, from one user to a different user (ie. the web server), from one context to another, etc. varies widely, especially with things like rsh. It makes no sense to say that the server is closing the child too quickly; it does not close it until the script tells it to. > > > > > > > > > At 05:34 PM 1/22/99 -0000, you wrote: > >[In order for any reply to be added to the PR database, ] > >[you need to include in the Cc line ] > >[and leave the subject line UNCHANGED. This is not done] > >[automatically because of the potential for mail loops. ] > >[If you do not include this Cc, your reply may be ig- ] > >[nored unless you are responding to an explicit request ] > >[from a developer. ] > >[Reply only with text; DO NOT SEND ATTACHMENTS! ] > > > > > >Synopsis: Server disconnects session > > > >State-Changed-From-To: open-closed > >State-Changed-By: marc > >State-Changed-When: Fri Jan 22 09:34:05 PST 1999 > >State-Changed-Why: > >This is not an issue with the web server, but an issue > >with Unix and perl programming. Various things work differently > >under an interactive shell and a non-interactive shell, but > >we really don't have the resources to help people with how > >to write their CGIs. > > > > > > > > > >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]