× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,
I attempted a prototype to play around with the concept of web Page
Streaming on our V5R4.
The idea being that the browser makes a request to which the server
responds but does not complete the response immediately, thus effecting
a "long open connection". The server writes the response, flushes
stdout, waits for some custom event to occur at the server then repeats
the write and flush to stdout over and over.

The RPG program (or C program for that matter) at the server runs OK and
the fflush() procedure completes without any fuss but the browser does
render any of the response until the program ends, presumably in
accordance with the connection closing. Since the same program executes
as desired, with the appropriate pauses between response chunks, when
run via QSH at the green screen, then I'm guessing that the problem
might be that Apache is performing a blocking response in spite of the
CGI program flushing stdout to send a partial response on it's way to
the browser (IE7 in this case)

Google shows quite a bit of blurb on this but nothing related to i5.
Certainly there are sites (undoubtedly non-i5 hosted) with links that
appear to successfully demonstrate the mechanism, using the same IE7
browser.

I was hoping for a relatively uncomplicated solution to this flushing
thing (no euphemism intended)
There's talk of things like FastCGI performing non-blocking responses
but I don't want to go down that road, especially since Apache does not
have mod_fastcgi installed.

Cheers, Peter


#####################################################################################
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Veda Advantage. If you need assistance, please contact Veda Advantage on either :- Australia 133124 or New Zealand +64 9 367 6200

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.