5753 libnsl: set_up_connection() over TCP does not adhere the specified timeout

Review Request #37 — Created April 17, 2015 and submitted — Latest diff uploaded

marcel
illumos-gate
5753
general

webrev: http://cr.illumos.org/~webrev/marcel/il-5753-set_up_connection/

The set_up_connection() over TCP does not adhere the specified timeout.

Without the fix:

# time ./rpc-timeout 10.0.0.99 5
clnt_create_service_timed failed

real    6m29.996s
user    0m0.002s
sys     0m0.005s
#

With the fix:

# time ./rpc-timeout 10.0.0.99 5
clnt_create_service_timed failed

real    0m7.934s
user    0m0.001s
sys     0m0.004s
#
Loading...