commit | f8deb0cfa8126e6132f6ff033f785e13da607e8a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Sep 01 17:59:22 2012 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Sep 03 20:47:35 2012 +0200 |
tree | 5b2c28b7ec2d8e854435733778d25e15756c643f | |
parent | e9dfa79a756bad119fe610844b027167165451ef [diff] |
MEDIUM: connection: only call tcp_connect_probe when nothing was attempted yet It was observed that after a failed send() on EAGAIN, a second connect() would still be attempted in tcp_connect_probe() because there was no way to know that a send() had failed. By checking the WANT_WR status flag, we know if a previous write attempt failed on EAGAIN, so we don't try to connect again if we know this has already failed. With this simple change, the second connect() has disappeared.