207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
(define *db-cache-path* #f)
(define *db-with-db-mutex* (make-mutex))
(define *db-api-call-time* (make-hash-table)) ;; hash of command => (list of times)
;; no sync db
(define *no-sync-db* #f)
;; SERVER
(define *my-client-signature* #f)
(define *transport-type* 'http) ;; override with [server] transport http|rpc|nmsg
;; replaced by *rmt:remote*
;; (define *runremote* #f) ;; if set up for server communication this will hold <host port>
;; (define *max-cache-size* 0)
(define *logged-in-clients* (make-hash-table))
(define *server-id* #f)
(define *server-info* #f) ;; good candidate for easily convert to non-global
;; (define *time-to-exit* #f)
(define *server-run* #t)
(define *run-id* #f)
(define *server-kind-run* (make-hash-table))
(define *home-host* #f)
;; (define *total-non-write-delay* 0)
|
|
|
|
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
(define *db-cache-path* #f)
(define *db-with-db-mutex* (make-mutex))
(define *db-api-call-time* (make-hash-table)) ;; hash of command => (list of times)
;; no sync db
(define *no-sync-db* #f)
;; SERVER
(define *my-signature* #f)
(define *transport-type* 'http) ;; override with [server] transport http|rpc|nmsg
;; replaced by *rmt:remote*
;; (define *runremote* #f) ;; if set up for server communication this will hold <host port>
;; (define *max-cache-size* 0)
(define *logged-in-clients* (make-hash-table))
;; (define *server-id* #f)
(define *server-info* #f) ;; good candidate for easily convert to non-global
;; (define *time-to-exit* #f)
(define *server-run* #t)
(define *run-id* #f)
(define *server-kind-run* (make-hash-table))
(define *home-host* #f)
;; (define *total-non-write-delay* 0)
|
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
|
(define (string->sexpr instr)
(handle-exceptions
exn
(begin
(debug:print 0 *default-log-port* "ERROR: string->sexpr bad input \""instr"\"")
#f)
(with-input-from-string instr
(lambda ()(read)))))
)
|
>
|
|
>
>
>
|
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
|
(define (string->sexpr instr)
(handle-exceptions
exn
(begin
(debug:print 0 *default-log-port* "ERROR: string->sexpr bad input \""instr"\"")
#f)
(if (string? instr)
(with-input-from-string instr
read)
(begin
(debug:print-info 0 *default-log-port* "Odd, instr is not a string: "instr)
instr))))
)
|