The "tcp vconn - refuse connection" test may fail due to a Connection
Refused error. The network stack returns ECONNREFUSED on a reset
connection in SYN_SENT state and EPIPE or ECONNRESET in all other
cases.
2022-09-19T17:45:48Z|00001|socket_util|INFO|0:127.0.0.1: listening on
port 34189
2022-09-19T17:45:48Z|00002|poll_loop|DBG|wakeup due to [POLLOUT][
POLLERR][POLLHUP] on fd 4 (127.0.0.1:47140<->) at ../lib/stream-fd.
c:153
test-vconn: unexpected vconn_connect() return value 111 (Connection
refused)
../../tests/vconn.at:21: exit code was 1, expected 0
530. vconn.at:21: 530. tcp vconn - refuse connection (vconn.at:21):
FAILED (vconn.at:21)
This was observed from a CI system, and isn't a common case.
Signed-off-by: Mike Pattrick <[email protected]>
---
tests/test-vconn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test-vconn.c b/tests/test-vconn.c
index fc8ce4a2c..96c89bd4e 100644
--- a/tests/test-vconn.c
+++ b/tests/test-vconn.c
@@ -157,6 +157,7 @@ test_refuse_connection(struct ovs_cmdl_context *ctx)
error = vconn_connect_block(vconn, (TIMEOUT - 2) * 1000);
if (!strcmp(type, "tcp")) {
if (error != ECONNRESET && error != EPIPE && error != ETIMEDOUT
+ && error != ECONNREFUSED
#ifdef _WIN32
&& error != WSAECONNRESET
#endif
--
2.31.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev