Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Detect Stop Button

by kschwab (Vicar)
on Nov 26, 2001 at 20:57 UTC ( [id://127581]=note: print w/replies, xml ) Need Help??


in reply to Detect Stop Button

I'm not as familiar with Apache as I am with Netscape's web server...but this is the sort of thing that's abstracted from a cgi-bin program.

Under Netscape's nsapi routines, you can detect a failure in net_write(), which includes the user pressing the stop button.

It would appear that there is an Apache equivalent, but you would need to be running something like mod_perl to gain access to the Apache "request write" functions.

From perusing the mod_perl lists, it appears there was a change starting with Apache 1.3.6. So...

  • For pre-1.3.6 Apache: You have to handle SIGPIPE
  • Apache 1.3.6 and later: $r->print() returns false on write failures
More info found at this url: http://thingy.kcilink.com/modperlguide/debug/Handling_the_User_pressed_Stop_.html

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://127581]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-19 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found