tipc: Allow connect() to wait indefinitely
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Aug 2010 11:00:15 +0000 (11:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2010 00:31:59 +0000 (17:31 -0700)
commit564e83b51a12b794e3f63a2d872398e1ee21616f
tree6785882fa955a768c9859291d8b5a32826efe9a7
parentc2de58140a380172610b6a0f07f975abb2fbb311
tipc: Allow connect() to wait indefinitely

Cause a socket whose TIPC_CONN_TIMEOUT option is zero to wait
indefinitely for a response to a connection request using connect().
Previously, specifying a timeout of 0 ms resulted in an immediate
timeout, which was inconsistent with the behavior specified by Posix
for a socket's receive and send timeout.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c