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.
/* 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 */