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.

drh 2018-07-31 23:37 forum-v2
Commit 2566a37efa5c93b42a67916b91458bebc2d984a66dac08efa9e84fc6170aaf58
2 files changed +1 -1 +6
--- src/backoffice.c
+++ src/backoffice.c
@@ -262,11 +262,11 @@
262262
getpid());
263263
}
264264
backoffice_work();
265265
break;
266266
}
267
- if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",0) ){
267
+ if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",1) ){
268268
/* If the no-delay flag is set, exit immediately rather than queuing
269269
** up. Assume that some future request will come along and handle any
270270
** necessary backoffice work. */
271271
db_end_transaction(0);
272272
break;
273273
--- 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
+6
--- src/db.c
+++ src/db.c
@@ -3026,10 +3026,16 @@
30263026
** SETTING: autosync-tries width=16 default=1
30273027
** If autosync is enabled setting this to a value greater
30283028
** than zero will cause autosync to try no more than this
30293029
** number of attempts if there is a sync failure.
30303030
*/
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
+*/
30313037
/*
30323038
** SETTING: binary-glob width=40 versionable block-text
30333039
** The VALUE of this setting is a comma or newline-separated list of
30343040
** GLOB patterns that should be treated as binary files
30353041
** for committing and merging purposes. Example: *.jpg
30363042
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button