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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Not ignoring user aborts. Help.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2011, 05:57 PM
kiladila kiladila is offline
Member
 
Join Date: Mar 2011
Posts: 19
Exclamation Not ignoring user aborts. Help.

Hello, i have faced problem after moving to Litespeed web server. We have using script who streaming files from remote server to client and sometimes users aborting transfers BUT after closing browser or transload cancel our server still executing request, PHP have setting: ignore_user_abort and it's set to Off it should NOT ignore user abort, but it's seams not working...Before lite speed i have used apache and had no problems with this.
__________________
Premium link generator
Reply With Quote
  #2  
Old 03-30-2011, 08:03 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
please refer this post:
http://www.litespeedtech.com/support...ead.php?t=3322

I think this is similar with your case -- litespeed works in this case but I guess the php script need some modification -- for example, when request a file on remote server, not the whole file, but only a piece of file each time, and send to the client the pieces.
Reply With Quote
  #3  
Old 04-26-2012, 05:16 PM
kolorafa kolorafa is offline
Member
 
Join Date: Jan 2008
Posts: 13
Unhappy Server dead after php idling - ignoring user abort.

I'm using litespeed on my few project, one of theme sends user lots of data with periodical time, problem: it ignores user abort (browser disconnect):

Test case:
test.php:
<?php

while(true){
echo str_replace("testtesttesttesttesttesttesttesttestt esttesttesttesttesttesttesttesttesttesttest<br />\n",128);
sleep(1);
}

test2.php:
<?php
phpinfo();


user open test.php 30times, uses F5 and ESC, then open test2.php

test2.php never loads for anyone!, all websites on that accunt are frozen, only way to get it back is to set "max php realtime work" but that will kill good working process, periodical restart server or Kill all lsphp.

Version 4.1.11
PHP 5.3.8

How to kill php process on browser abort?
Reply With Quote
  #4  
Old 04-26-2012, 08:12 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
how does it work under apache ?
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 09:52 PM.



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