The client which sends a malformed PROXY header also sent a request
behind it. The connection is reset as soon as the header line is
complete, so on a build where the reset comes back fast enough the
write of the request fails with ECONNRESET instead of succeeding, and
the test fails. Nothing needs to be sent after the bad header.
} -run
client c3 -connect ${h1_fe1_sock} {
- # a malformed header is rejected as well
+ # a malformed header is rejected as soon as its line is complete, so
+ # nothing else is sent here: the request would race with the reset
send "PROXY TCP4 not an address at all\r\n"
- txreq
expect_close
} -run