Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Re:

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


trawick at gmail

Aug 7, 2013, 5:55 PM

Post #1 of 4 (28 views)
Permalink
Re:

On Wed, Aug 7, 2013 at 6:48 PM, <zstrebly [at] roadrunner> wrote:

> I am using mod_fcgid with apache 2.4. Is there a FastCgiConfig equivalent
> or a way that I can get the same result as if I set the –flush option on
> FastCgiConfig in a mod_fastcgi application. I need to send custom headers
> from my application. Put another way I want to send the equivalent of a cgi
> nph-file.
>

NPH CGI is significantly different than just -flush AFAICT.

mod_fastcgi's -flush says to flush to the network as data is read.

For mod_fcgid, see
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidoutputbuffersize.
Set that directive to a small value, and mod_fcgid will also flush as it
reads data.

NPH is something else in addition to no buffering -- the script creates the
entire HTTP response. mod_fastcgi's -flush option doesn't circumvent the
normal protocol handling of the core server, specifically building of a
proper HTTP response.



>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


--
Born in Roswell... married an alien...
http://emptyhammock.com/


zstrebly at roadrunner

Aug 8, 2013, 4:12 AM

Post #2 of 4 (24 views)
Permalink
Re: [In reply to]

---- Jeff Trawick <trawick [at] gmail> wrote:
> On Wed, Aug 7, 2013 at 6:48 PM, <zstrebly [at] roadrunner> wrote:
>
> > I am using mod_fcgid with apache 2.4. Is there a FastCgiConfig equivalent
> > or a way that I can get the same result as if I set the –flush option on
> > FastCgiConfig in a mod_fastcgi application. I need to send custom headers
> > from my application. Put another way I want to send the equivalent of a cgi
> > nph-file.
> >
>
> NPH CGI is significantly different than just -flush AFAICT.
>
> mod_fastcgi's -flush says to flush to the network as data is read.
>
> For mod_fcgid, see
> http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidoutputbuffersize.
> Set that directive to a small value, and mod_fcgid will also flush as it
> reads data.
>
> NPH is something else in addition to no buffering -- the script creates the
> entire HTTP response. mod_fastcgi's -flush option doesn't circumvent the
> normal protocol handling of the core server, specifically building of a
> proper HTTP response.
>
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe [at] httpd
> > For additional commands, e-mail: users-help [at] httpd
> >
> >
>
>
> --
> Born in Roswell... married an alien...
> http://emptyhammock.com/
Thank-You for your reply. How can I implement an authorizer role , for example, without sending back the headers from the script? When I try to send a suitable header the server’s response blocks the header that I am attempting to send from the script. I already had the FcgidOutputBufferSize set to zero.

Zoltan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


trawick at gmail

Aug 8, 2013, 6:36 AM

Post #3 of 4 (22 views)
Permalink
Re: [In reply to]

On Thu, Aug 8, 2013 at 7:12 AM, <zstrebly [at] roadrunner> wrote:

>
> ---- Jeff Trawick <trawick [at] gmail> wrote:
> > On Wed, Aug 7, 2013 at 6:48 PM, <zstrebly [at] roadrunner> wrote:
> >
> > > I am using mod_fcgid with apache 2.4. Is there a FastCgiConfig
> equivalent
> > > or a way that I can get the same result as if I set the –flush option
> on
> > > FastCgiConfig in a mod_fastcgi application. I need to send custom
> headers
> > > from my application. Put another way I want to send the equivalent of
> a cgi
> > > nph-file.
> > >
> >
> > NPH CGI is significantly different than just -flush AFAICT.
> >
> > mod_fastcgi's -flush says to flush to the network as data is read.
> >
> > For mod_fcgid, see
> >
> http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidoutputbuffersize
> .
> > Set that directive to a small value, and mod_fcgid will also flush as it
> > reads data.
> >
> > NPH is something else in addition to no buffering -- the script creates
> the
> > entire HTTP response. mod_fastcgi's -flush option doesn't circumvent the
> > normal protocol handling of the core server, specifically building of a
> > proper HTTP response.
> >
> >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe [at] httpd
> > > For additional commands, e-mail: users-help [at] httpd
> > >
> > >
> >
> >
> > --
> > Born in Roswell... married an alien...
> > http://emptyhammock.com/
> Thank-You for your reply. How can I implement an authorizer role , for
> example, without sending back the headers from the script? When I try to
> send a suitable header the server’s response blocks the header that I am
> attempting to send from the script. I already had the FcgidOutputBufferSize
> set to zero.
>
> Zoltan
>

I'm not sure. Can you post a sample, complete response from your
authorizer?

--
Born in Roswell... married an alien...
http://emptyhammock.com/


covener at gmail

Aug 8, 2013, 9:09 AM

Post #4 of 4 (19 views)
Permalink
Re: [In reply to]

On Thu, Aug 8, 2013 at 11:27 AM, <zstrebly [at] roadrunner> wrote:
> I am using Perl code from an old book

Please use a Subject: in emails to the list

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.