How to disconnect when the CGI aborts()
Linda T. Nettleton (nettleto@elsinor.fsl.noaa.gov)
Wed, 17 Apr 1996 15:52:58 MDT
Greetings to All:
I have not retested this phenomenom since we upgraded to
perl5.002 and libwww 5b11, however, this is the situation I would
like to remedy....
Our Web server is CERN running on an SGI. We access the
server in this instance through the POST method which addresses a
PERL CGI. The perl script in turn invokes C code using the
methods explained in Perl 5. Within the C functions several I/O
activities occur - among them passing of messages to Pipes which
are being opened and shut. If an I/O activity fails, originally
I intended to clean up what I could and then abort(). However, the
browser hung. Although it will time out if a connection is never
made with the server, it doesn't seem to be able to detect that
the server process has died.
My original thought was to find my way out of the code,
when possible and return an HTML expressing that IPC or I/O errors
are occuring. However, there are sure to be some circumstances
especially at the development phase where everything is 'hosed' and
we can't malloc, can't write, can't read files - you all know.
What do I have at my disposal to detect and signal that event
to the libwww browser?
Linda Nettleton
--
------------------------------------------------------------------
Linda Nettleton E-mail: nettleto@fsl.noaa.gov
Forecast Systems Laboratory Fax: 303-497-7259
U.S. Department of Commerce Phone: 303-497-7242
325 Broadway Mail Code: R/E/FS2
Boulder, CO 80303-3328
------------------------------------------------------------------