add tcp-syncnt URL param to adjust TCP_SYNCNT sockopt
authorPeter Lieven <pl@kamp.de>
Mon, 23 Dec 2013 12:12:28 +0000 (13:12 +0100)
committerPeter Lieven <pl@kamp.de>
Mon, 23 Dec 2013 13:03:18 +0000 (14:03 +0100)
This allows indirect support for a configurable connect timeout.

Linux uses a exponential backoff for SYN retries starting
with 1 second.

This means for a value n for TCP_SYNCNT, the connect will
effectively timeout after 2^(n+1)-1 seconds.

Example:
 examples/nfs-ls nfs://10.0.0.1/export?tcp-syncnt=1

Signed-off-by: Peter Lieven <pl@kamp.de>

No differences found