Megatest

Diff
Login

Differences From Artifact [e1da68c36b]:

To Artifact [c4fe5c65f6]:


142
143
144
145
146
147
148


149

150
151
152
153
154
155
156
142
143
144
145
146
147
148
149
150

151
152
153
154
155
156
157
158







+
+
-
+







	 (begin 
	   (debug:print 0 "WARNING: failed to start on portnum: " portnum ", trying next port")
	   (thread-sleep! 0.1)

	   ;; get_next_port goes here

	   (http-transport:try-start-server ipaddrstr (+ portnum 1) server-id))
	 (begin
	   (open-run-close tasks:server-delete tasks:open-db ipaddrstr portnum " http-transport:try-start-server")
	 (print "ERROR: Tried and tried but could not start the server")))
	   (print "ERROR: Tried and tried but could not start the server"))))
   ;; any error in following steps will result in a retry
   (set! *server-info* (list ipaddrstr portnum))
   (open-run-close tasks:server-set-interface-port 
		   tasks:open-db 
		   server-id 
		   ipaddrstr portnum)
   (debug:print 1 "INFO: Trying to start server on " ipaddrstr ":" portnum)