92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
;; through them searching for a good one.
;;
(let* ((server-dat (server:choose-server areapath 'best))
(runremote (or area-dat *runremote*)))
(if (not server-dat) ;; no server found
(client:setup-http-baby areapath remaining-tries: (- remaining-tries 1))
(match server-dat
((host port start-time server-id)
(debug:print-info 4 *default-log-port* "client:setup server-dat=" server-dat ", remaining-tries=" remaining-tries)
(if (and (not area-dat)
(not *runremote*))
(begin
(set! *runremote* (make-remote))
(let* ((server-info (remote-server-info *runremote*)))
(if server-info
|
|
|
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
;; through them searching for a good one.
;;
(let* ((server-dat (server:choose-server areapath 'best))
(runremote (or area-dat *runremote*)))
(if (not server-dat) ;; no server found
(client:setup-http-baby areapath remaining-tries: (- remaining-tries 1))
(match server-dat
((host port start-time server-id pid)
(debug:print-info 4 *default-log-port* "client:setup server-dat=" server-dat ", remaining-tries=" remaining-tries)
(if (and (not area-dat)
(not *runremote*))
(begin
(set! *runremote* (make-remote))
(let* ((server-info (remote-server-info *runremote*)))
(if server-info
|