note 105903 added to function.sleep
| From: | barlow at fhtsolutions dot com | Date: | Sat, 24 Sep 2011 13:33:57 +0000 |
| Subject: | note 105903 added to function.sleep | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183401@lists.php.net to get a copy of this message | ||
You should put sleep into both the pass and fail branches, since an attacker can check whether the
response is slow and use that as an indicator - cutting down the delay time. But a delay in both
branches eliminates this possibility.
----
Server IP: 69.147.83.197
Probable Submitter: 64.7.151.16
----
Manual Page -- http://www.php.net/manual/en/function.sleep.php
Edit -- https://master.php.net/note/edit/105903
Del: integrated -- https://master.php.net/note/delete/105903/integrated
Del: useless -- https://master.php.net/note/delete/105903/useless
Del: bad code -- https://master.php.net/note/delete/105903/bad+code
Del: spam -- https://master.php.net/note/delete/105903/spam
Del: non-english -- https://master.php.net/note/delete/105903/non-english
Del: in docs -- https://master.php.net/note/delete/105903/in+docs
Del: other reasons-- https://master.php.net/note/delete/105903
Reject -- https://master.php.net/note/reject/105903
Search -- https://master.php.net/manage/user-notes.php