On Wed, Jan 09, 2019 at 08:30:17PM +0300, Ilya Maximets wrote: > On some systems in case where remote is not responding, socket could > remain in SYN_SENT state for a really long time without errors waiting > for connection. This leads to situations where vconn connection hangs > for a few minutes waiting for connection to the DOWN remote. > > For example, this situation emulated by "refuse-connection" vconn > testcase. This leads to test failures because Alarm signal arrives much > faster than ETIMEDOUT from the socket: > > ./vconn.at:21: ovstest test-vconn refuse-connection tcp > Alarm clock > stderr: > |socket_util|INFO|0:127.0.0.1: listening on port 63812 > |poll_loop|DBG|wakeup due to 0-ms timeout > |poll_loop|DBG|wakeup due to 10155-ms timeout > |fatal_signal|WARN|terminating with signal 14 (Alarm clock) > ./vconn.at:21: exit code was 142, expected 0 > vconn.at:21: 535. tcp vconn - refuse connection (vconn.at:21): FAILED > > This patch allowes to specify timeout value for vconn blocking > connections. If the connection takes more time, socket will be closed > with ETIMEDOUT error code. Negative value could be used to wait > infinitely. > > Signed-off-by: Ilya Maximets <[email protected]>
Thanks, applied to master. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
