View Single Post
  #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