Bug #2995: connection_timeout uses ITIMER_PROF, not ITIMER_REAL
| From: | maxcom at vinchi dot ru | Date: | Fri, 17 Dec 1999 21:40:37 +0000 |
| Subject: | Bug #2995: connection_timeout uses ITIMER_PROF, not ITIMER_REAL | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13815@lists.php.net to get a copy of this message | ||
From: maxcom@vinchi.ru
Operating system: RedHat Linux 6.1
PHP version: 3.0.12
PHP Bug Type: Feature/Change Request
Bug description: connection_timeout uses ITIMER_PROF, not ITIMER_REAL
PHP3 counts timeouts for scripts using ITIMER_PROF, but
following to documentation and my understanding of how
this should work, it must count time using ITIMER_REAL.
This is very important for database access pages that
does big database request. Normally user does not have rights to
restart httpd or database server, so there are no way to
interrupt them or limit their execution time. This brings a lot
of problems to system administrators that has to abort
that stupid queries (that sometimes take too much system
resources). It seems that trivial replace of ITIMER_PROF/SIGPROF
to ITIMER_REAL/ALARM in main.c works file. I hope you will
change that or document in next version. Thank you for php3!