You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be an object orientated approach to modify the configuration of a PHP process.
This idea has been motivated by this bug of max opened files exhaustion. In this case the limit can be avoided. But for the witness package it won't be. The intention is for a single process to handle thousands of tasks, and potentially many http requests in each of them.
The native way to change the limit is via posix_setrlimit(\POSIX_RLIMIT_NOFILE, \POSIX_RLIMIT_INFINITY, \POSIX_RLIMIT_INFINITY);. This is not very expressive and required some time to find the function and the correct constants to use.
This package would translate to something like this:
\Innmind\Ini\Ini::of()
->disableMaxOpenedFilesLimit()
->apply();
// rest of the program here...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This would be an object orientated approach to modify the configuration of a PHP process.
This idea has been motivated by this bug of max opened files exhaustion. In this case the limit can be avoided. But for the
witness
package it won't be. The intention is for a single process to handle thousands of tasks, and potentially many http requests in each of them.The native way to change the limit is via
posix_setrlimit(\POSIX_RLIMIT_NOFILE, \POSIX_RLIMIT_INFINITY, \POSIX_RLIMIT_INFINITY);
. This is not very expressive and required some time to find the function and the correct constants to use.This package would translate to something like this:
Beta Was this translation helpful? Give feedback.
All reactions