mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 14:27:30 +00:00
MEDIUM: stream-int: make idle-conns switch to ST_RDY
The purpose of making idle-conns switch to SI_ST_CON was to make the transition detectable and the operation retryable in case of connection error. Now we have the RDY state for this which is much more suitable since it indicates a validated connection on which we didn't necessarily send anything yet. This will still lead to a transition to EST while not requiring unnatural write polling nor connect timeouts.
This commit is contained in:
parent
b27f54a88c
commit
8c603ded39
@ -519,7 +519,7 @@ static inline int si_connect(struct stream_interface *si, struct connection *con
|
||||
/* try to reuse the existing connection, it will be
|
||||
* confirmed once we can send on it.
|
||||
*/
|
||||
si->state = SI_ST_CON;
|
||||
si->state = SI_ST_RDY;
|
||||
}
|
||||
|
||||
/* needs src ip/port for logging */
|
||||
|
Loading…
Reference in New Issue
Block a user