|  |  | @ -101,11 +101,12 @@ def with_http_server(func): | 
			
		
	
		
		
			
				
					
					|  |  |  |                   'HandlerClass': HTTPRequestHandler, |  |  |  |                   'HandlerClass': HTTPRequestHandler, | 
			
		
	
		
		
			
				
					
					|  |  |  |                   'bind': host}) |  |  |  |                   'bind': host}) | 
			
		
	
		
		
			
				
					
					|  |  |  |     p.start() |  |  |  |     p.start() | 
			
		
	
		
		
			
				
					
					|  |  |  |     now = time.time() |  |  |  |     start = time.monotonic() | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     port = None |  |  |  |     port = None | 
			
		
	
		
		
			
				
					
					|  |  |  |     while 1: |  |  |  |     while 1: | 
			
		
	
		
		
			
				
					
					|  |  |  |       if time.time() - now > 5: |  |  |  |       if time.monotonic() - start > 10: | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         raise Exception('HTTP Server did not start') |  |  |  |         raise Exception('HTTP Server did not start') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       try: |  |  |  |       try: | 
			
		
	
		
		
			
				
					
					|  |  |  |         port = port_queue.get(timeout=0.1) |  |  |  |         port = port_queue.get(timeout=0.1) | 
			
		
	
		
		
			
				
					
					|  |  |  |         requests.put(f'http://{host}:{port}/qlog.bz2', data='') |  |  |  |         requests.put(f'http://{host}:{port}/qlog.bz2', data='') | 
			
		
	
	
		
		
			
				
					|  |  | 
 |