Megatest

Diff
Login

Differences From Artifact [ea6604d38f]:

To Artifact [cb9f17b39f]:


303
304
305
306
307
308
309
310
311


312

313
314
315
316
317
318
319
303
304
305
306
307
308
309

310
311
312

313
314
315
316
317
318
319
320







-

+
+
-
+







			   (exit 1))))
	 (res        #f))
    (handle-exceptions
     exn
     (begin
       ;; TODO: Send this output to a log file so it isn't lost when running as daemon
       (print "ERROR IN http-transport:client-send-receive " ((condition-property-accessor 'exn 'message) exn))
       (server:ensure-running run-id)
       (if (> numretries 0)
	   (begin
	     (if (> (random 100) 80)(server:ensure-running run-id)) ;; every so often try starting a server
	   (http-transport:client-api-send-receive run-id serverdat cmd params numretries: (- numretries 1))))
	     (http-transport:client-api-send-receive run-id serverdat cmd params numretries: (- numretries 1)))))
     (begin
       (debug:print-info 11 "fullurl=" fullurl "\n")
       ;; set up the http-client here
       (max-retry-attempts 5)
       ;; consider all requests indempotent
       (retry-request? (lambda (request)
			 #t))   ;;  		 (thread-sleep! (/ (if (> numretries 100) 100 numretries) 10))