Overview
Comment: | wip |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v2.0001-ulex-one-shot |
Files: | files | file ages | folders |
SHA1: |
fb2aca7823d98a677ea7ec2bf700c2b6 |
User & Date: | matt on 2022-01-13 06:18:32 |
Other Links: | branch diff | manifest | tags |
Context
2022-01-14
| ||
08:13 | wip check-in: eccf4ded3f user: matt tags: v2.0001-ulex-one-shot | |
2022-01-13
| ||
22:57 | Removed qrykey from some calls check-in: b40bfb8bf8 user: matt tags: v2.0001-ulex-one-shot | |
06:18 | wip check-in: fb2aca7823 user: matt tags: v2.0001-ulex-one-shot | |
2022-01-12
| ||
17:49 | Switched back to tcp6 check-in: 1b8dcc586b user: matt tags: v2.0001-ulex-one-shot | |
Changes
Modified rmtmod.scm from [c55aca3d24] to [1808890632].
︙ | |||
115 116 117 118 119 120 121 | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | - + | ;; stored (for now) in *db-serv-info* ;; (defstruct servdat (host (get-host-name)) (port #f) (uuid #f) (dbfile #f) |
︙ | |||
196 197 198 199 200 201 202 | 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | - - - - - + - - - | ;; ;; TODO: This is unnecessarily re-creating the record in the hash table ;; (define (rmt:open-main-connection remdat apath) (let* ((fullpath (db:dbname->path apath ".db/main.db")) (conns (servdat-conns remdat)) (conn (rmt:get-conn remdat apath ".db/main.db")) ;; (hash-table-ref/default conns fullpath #f)) ;; TODO - create call for this |
︙ | |||
236 237 238 239 240 241 242 | 229 230 231 232 233 234 235 236 237 238 239 240 241 242 | - | (if (not the-srv) ;; have server, try connecting to it (start-main-srv) (let* ((srv-addr (server-address the-srv)) ;; need serv (ipaddr (alist-ref 'ipaddr the-srv)) (port (alist-ref 'port the-srv)) (srvkey (alist-ref 'servkey the-srv)) (fullpath (db:dbname->path apath dbname)) |
︙ | |||
347 348 349 350 351 352 353 | 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | - - + - - - - - - + | (debug:print-info 0 *default-log-port* "rmt:send-receive "cmd" params="params)) (rmt:send-receive-real sinfo apath dbname cmd params))))) ;; db is at apath/.db/dbname, rid is an intermediary solution and will be removed ;; sometime in the future ;; (define (rmt:send-receive-real sinfo apath dbname cmd params) |
︙ | |||
1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 | 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 | + | (hash-table-ref/default *http-functions* fnkey (lambda () "nothing here yet"))) (define *rmt:run-mutex* (make-mutex)) (define *rmt:run-flag* #f) ;; Main entry point to start a server. was start-server (define (rmt:run hostn) (assert (args:get-arg "-server") "FATAL: rmt:run called on non-server process") (mutex-lock! *rmt:run-mutex*) (if *rmt:run-flag* (begin (debug:print-warn 0 *default-log-port* "rmt:run already running.") (mutex-unlock! *rmt:run-mutex*)) (begin (set! *rmt:run-flag* #t) |
︙ |
Modified ulex-simple/ulex.scm from [3a037ef6f7] to [47a35a69e2].
︙ | |||
171 172 173 174 175 176 177 178 | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | + + + + + - + | (thread-start! th1) (udat-cmd-thread-set! uconn th1) (print "cmd loop started") uconn) (assert #f "ERROR: run-listener called without proper setup.")))) (define (wait-and-close uconn) (let loop () (if (not (udat-cmd-thread uconn)) (begin (thread-sleep! 1) (loop)))) (thread-join! (udat-cmd-thread uconn)) |
︙ |