Fossil SCM
Make the backoffice-nodelay a setting visible on the settings display, and make it on by default. This is a temporary fix to avoid webserver problems until such time as I can figure out what it is about backserver sleeping that is causing the webserver to latch up.
Commit
2566a37efa5c93b42a67916b91458bebc2d984a66dac08efa9e84fc6170aaf58
Parent
46697ca19516229…
2 files changed
+1
-1
+6
+1
-1
| --- src/backoffice.c | ||
| +++ src/backoffice.c | ||
| @@ -262,11 +262,11 @@ | ||
| 262 | 262 | getpid()); |
| 263 | 263 | } |
| 264 | 264 | backoffice_work(); |
| 265 | 265 | break; |
| 266 | 266 | } |
| 267 | - if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",0) ){ | |
| 267 | + if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",1) ){ | |
| 268 | 268 | /* If the no-delay flag is set, exit immediately rather than queuing |
| 269 | 269 | ** up. Assume that some future request will come along and handle any |
| 270 | 270 | ** necessary backoffice work. */ |
| 271 | 271 | db_end_transaction(0); |
| 272 | 272 | break; |
| 273 | 273 |
| --- src/backoffice.c | |
| +++ src/backoffice.c | |
| @@ -262,11 +262,11 @@ | |
| 262 | getpid()); |
| 263 | } |
| 264 | backoffice_work(); |
| 265 | break; |
| 266 | } |
| 267 | if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",0) ){ |
| 268 | /* If the no-delay flag is set, exit immediately rather than queuing |
| 269 | ** up. Assume that some future request will come along and handle any |
| 270 | ** necessary backoffice work. */ |
| 271 | db_end_transaction(0); |
| 272 | break; |
| 273 |
| --- src/backoffice.c | |
| +++ src/backoffice.c | |
| @@ -262,11 +262,11 @@ | |
| 262 | getpid()); |
| 263 | } |
| 264 | backoffice_work(); |
| 265 | break; |
| 266 | } |
| 267 | if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",1) ){ |
| 268 | /* If the no-delay flag is set, exit immediately rather than queuing |
| 269 | ** up. Assume that some future request will come along and handle any |
| 270 | ** necessary backoffice work. */ |
| 271 | db_end_transaction(0); |
| 272 | break; |
| 273 |
M
src/db.c
+6
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -3026,10 +3026,16 @@ | ||
| 3026 | 3026 | ** SETTING: autosync-tries width=16 default=1 |
| 3027 | 3027 | ** If autosync is enabled setting this to a value greater |
| 3028 | 3028 | ** than zero will cause autosync to try no more than this |
| 3029 | 3029 | ** number of attempts if there is a sync failure. |
| 3030 | 3030 | */ |
| 3031 | +/* | |
| 3032 | +** SETTING: backoffice-nodelay boolean default=off | |
| 3033 | +** If backoffice-nodelay is true, then the backoffice processing | |
| 3034 | +** will never invoke sleep(). If it has nothing useful to do, | |
| 3035 | +** it simply exits. | |
| 3036 | +*/ | |
| 3031 | 3037 | /* |
| 3032 | 3038 | ** SETTING: binary-glob width=40 versionable block-text |
| 3033 | 3039 | ** The VALUE of this setting is a comma or newline-separated list of |
| 3034 | 3040 | ** GLOB patterns that should be treated as binary files |
| 3035 | 3041 | ** for committing and merging purposes. Example: *.jpg |
| 3036 | 3042 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -3026,10 +3026,16 @@ | |
| 3026 | ** SETTING: autosync-tries width=16 default=1 |
| 3027 | ** If autosync is enabled setting this to a value greater |
| 3028 | ** than zero will cause autosync to try no more than this |
| 3029 | ** number of attempts if there is a sync failure. |
| 3030 | */ |
| 3031 | /* |
| 3032 | ** SETTING: binary-glob width=40 versionable block-text |
| 3033 | ** The VALUE of this setting is a comma or newline-separated list of |
| 3034 | ** GLOB patterns that should be treated as binary files |
| 3035 | ** for committing and merging purposes. Example: *.jpg |
| 3036 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -3026,10 +3026,16 @@ | |
| 3026 | ** SETTING: autosync-tries width=16 default=1 |
| 3027 | ** If autosync is enabled setting this to a value greater |
| 3028 | ** than zero will cause autosync to try no more than this |
| 3029 | ** number of attempts if there is a sync failure. |
| 3030 | */ |
| 3031 | /* |
| 3032 | ** SETTING: backoffice-nodelay boolean default=off |
| 3033 | ** If backoffice-nodelay is true, then the backoffice processing |
| 3034 | ** will never invoke sleep(). If it has nothing useful to do, |
| 3035 | ** it simply exits. |
| 3036 | */ |
| 3037 | /* |
| 3038 | ** SETTING: binary-glob width=40 versionable block-text |
| 3039 | ** The VALUE of this setting is a comma or newline-separated list of |
| 3040 | ** GLOB patterns that should be treated as binary files |
| 3041 | ** for committing and merging purposes. Example: *.jpg |
| 3042 |