Re: [GENERAL] Why is it not using the other processor?

2001-07-10 Thread Alex Pilosov

On Thu, 5 Jul 2001, Tom Lane wrote:

 Ryan Mahoney [EMAIL PROTECTED] writes:
  Re: killing a process from browser, I don't think what you're trying to do 
  is really possible.
 
 If the client-side code were programmed to send a Cancel request to the
 backend when the user loses interest, then the right things would
 happen.  I am not sure how practical that is though; does the web server
 even find out about it when the user presses Stop in a typical browser?
 (If not, you can hardly expect Postgres to somehow intuit what happened
 two protocols away ;-).)

Webserver definitely finds out. (Socket gets closed by client). The real
question is, how does webserver signal this fact to a
CGI/mod_perl/jsp/whatever web application. For CGI, _i believe_ the
standard is that webserver will SIGHUP the application, and app can do
whatever cleanup it needs. For other interfaces, I really don't know.

-alex



---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



Re: [GENERAL] Why is it not using the other processor?

2001-07-08 Thread Mithun Bhattacharya

Tom Lane wrote:
 
http://thingy.kcilink.com/modperlguide/debug/Handling_the_User_pressed_Stop_.html

 I am not sure how practical that is though; does the web server
 even find out about it when the user presses Stop in a typical browser?

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]