f8cd64fc6864eb5ffc35c6d4d574191f06e26834 |
|
23-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Change instances.lock settings to make it less likely to fail
With use_io_notify it's spending less time usleep()ing. Use also a slightly
longer timeout just in case.
If a lot of instances were started at the same time, some of them could have
failed with:
master: Error: file_dotlock_open(.../instances) failed: Resource temporarily unavailable |
1cf8b6dc4309cceb2a9dfc5f51343054a3f56013 |
|
22-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib-master: Increased instances file's dotlock timeout to 2 seconds.
The 1 second would have been enough, except the current dotlocking code
uses second-level precision in checking timeouts, so it could end up trying
the lock only once.
A better fix would be to fix the dotlocking code to use millisecond-level
precision (internally), but since this is the only user so far where it
would have mattered, it's not really worth the effort (yet). |