LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > ignore_user_abort doesn't work?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2007, 11:09 AM
xinn xinn is offline
Member
 
Join Date: Aug 2005
Posts: 21
Default ignore_user_abort doesn't work?

Hello,

i wrote a simply irc-bot in php and it seems that lsws ( or php5.2.4 ) has some problems with ignore_user_abort function. It doesn't actually work... When user clicks "close" button in a browser then he stops a script. I tested the bot on my local environment ( apache 2.0.55, php 5.1.1 ) and it works perfect...

I use lsws 3.3 ent; php 5.2.4 & suExec
Reply With Quote
  #2  
Old 11-28-2007, 03:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
ignore_user_abort may only work with Apache as Apache embed PHP engine in httpd process. LSWS has no clue whether "ignore_user_about" has been set or not, and the PHP process might be assigned to another request or shutdown.
We will take a closer look, it may not be possible to make it work properly with lsphp.
Reply With Quote
  #3  
Old 11-29-2007, 12:12 AM
xinn xinn is offline
Member
 
Join Date: Aug 2005
Posts: 21
is there any possible workaround?
Reply With Quote
  #4  
Old 11-29-2007, 07:37 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We will try, but we cannot guarantee that it will work 100% all the time due to the technical difficult.
Reply With Quote
  #5  
Old 12-08-2007, 04:32 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
ignore_user_abort works well when PHP has been started in self-managed mode, that way, LSWS only start one parent process, that parent process will start children process to serve requests. When a request abort, the children process that handles the request will continue till the request has been finished.

So, you need to set "PHP_LSAPI_CHILDREN" env greater than "Max Connections" for the lsphp external app, and "Instances" should be set to "1".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:34 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.