Project

General

Profile

Actions

Bug #5753

closed

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

Added by Marcel Telka over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
networking
Start date:
2015-03-26
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

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

Steps to reproduce (use the attached rpc-timeout.c file):

# gcc -Wall -l nsl -o rpc-timeout rpc-timeout.c
# ./rpc-timeout
Usage: ./rpc-timeout hostname [timeout]
# time ./rpc-timeout 10.0.0.99 5
clnt_create_service_timed failed

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

Note: The IP address used is the IP address of an unreachable machine.

The timeout should be about 5 seconds, but we see the actual timeout is over 6 minutes.


Files

rpc-timeout.c (482 Bytes) rpc-timeout.c Marcel Telka, 2015-03-26 02:12 PM

Related issues

Related to illumos gate - Bug #5848: TCP options are reset after failed connect()New2015-04-16

Actions
Actions

Also available in: Atom PDF