mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-31 08:30:59 +01:00 
			
		
		
		
	Test the httpclient when the lua action timeout. The lua timeout is reached before the httpclient is ended. This test that the httpclient are correctly cleaned when destroying the hlua context. Must be backported as far as 2.5.
		
			
				
	
	
		
			9 lines
		
	
	
		
			211 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			211 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| function test()
 | |
| 	local httpclient = core.httpclient()
 | |
| 	local response = httpclient:get{url="http://127.0.0.1", headers={ [ "Host" ] = { "localhost" } }}
 | |
| 
 | |
| end
 | |
| 
 | |
| 
 | |
| core.register_action("test", {"tcp-req"}, test, 0)
 |