note 30596 added to function.stream-set-timeout

From: Date: Sun, 23 Mar 2003 12:49:06 +0000
Subject: note 30596 added to function.stream-set-timeout
Groups: php.notes 
Request: Send a blank email to php-notes+get-45682@lists.php.net to get a copy of this message
I think it might be useful to note that it's a good to take advantage of this function if you are using streams in scripts which also use set_time_limit() or ignore_user_abort(true). A stream which doesn't timeout will keep running even if the limit set by set_time_limit() is exceeded. And if you are using set_time_limit(0) and ignore_user_abort(true), there is a risk that your script might hang in there "forever" if a stalled stream doesn't timeout properly. -- http://www.php.net/manual/en/function.stream-set-timeout.php http://master.php.net/manage/user-notes.php?action=edit+30596 http://master.php.net/manage/user-notes.php?action=delete+30596 http://master.php.net/manage/user-notes.php?action=reject+30596

« previous php.notes (#45682) next »