Megatest

Diff
Login

Differences From Artifact [c450806bbf]:

To Artifact [e034754503]:


335
336
337
338
339
340
341
342
343

344
345
346
347
348
349
350
335
336
337
338
339
340
341


342
343
344
345
346
347
348
349







-
-
+







  (if (remote? runremote)
      (let ((api-dat (remote-api-uri runremote)))
	(handle-exceptions
	    exn
	  (begin
	    (print-call-chain *default-log-port*)
	    (debug:print-error 0 *default-log-port* " closing connection failed with error: " ((condition-property-accessor 'exn 'message) exn) ", exn=" exn))
	  (if (args:any-defined? "-server" "-execute" "-run")
	      (debug:print-info 0 *default-log-port* "Closing connections to "api-dat))
	  (debug:print-info 0 *default-log-port* "Closing connections to "api-dat)
	  (if api-dat (close-connection! api-dat))
	  (remote-conndat-set! runremote #f)
	  #t))
      #f))

;; run http-transport:keep-running in a parallel thread to monitor that the db is being 
;; used and to shutdown after sometime if it is not.