From 7ddf7c5641ff7b2f4ed9323dedc4a70f6c74c36d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 6 Apr 2015 00:52:04 +0200 Subject: [PATCH] MINOR: lua: no need for setting timeouts / conn_retries in hlua_socket_new() For the client side this is done already by stream_new(). For the server side it will be done when establishing the connection. --- src/hlua.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index 076da63e0..0499ea392 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -2065,18 +2065,11 @@ __LJMP static int hlua_socket_new(lua_State *L) strm->hlua.flags = 0; LIST_INIT(&strm->hlua.com); - /* Adjust the stream's timeouts */ - strm->req.rto = socket_proxy.timeout.client; - strm->req.wto = socket_proxy.timeout.server; - strm->res.rto = socket_proxy.timeout.server; - strm->res.wto = socket_proxy.timeout.client; - /* Configure "right" stream interface. this "si" is used to connect * and retrieve data from the server. The connection is initialized * with the "struct server". */ si_set_state(&strm->si[1], SI_ST_ASS); - strm->si[1].conn_retries = socket_proxy.conn_retries; /* Force destination server. */ strm->flags |= SF_DIRECT | SF_ASSIGNED | SF_ADDR_SET | SF_BE_ASSIGNED;