aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2015-12-03 12:56:18 -0200
committerDiego Nehab <diego.nehab@gmail.com>2015-12-03 12:56:18 -0200
commit83880dbed77f9a0a3627bce2e7bfbe1b862e091d (patch)
treeb5c9dcf94fe311c27a42096c04907fcd17265404 /doc
parentbe67f63f4e11e53690bf1431a236f86b484c9bf0 (diff)
downloadluasocket-83880dbed77f9a0a3627bce2e7bfbe1b862e091d.tar.gz
luasocket-83880dbed77f9a0a3627bce2e7bfbe1b862e091d.tar.bz2
luasocket-83880dbed77f9a0a3627bce2e7bfbe1b862e091d.zip
When zero-timeout, only try first address in connect.
Diffstat (limited to 'doc')
-rw-r--r--doc/tcp.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/tcp.html b/doc/tcp.html
index fb627a1..c86853d 100644
--- a/doc/tcp.html
+++ b/doc/tcp.html
@@ -242,11 +242,14 @@ established.
242 242
243<p class=note> 243<p class=note>
244Note: Starting with LuaSocket 3.0, the host name resolution 244Note: Starting with LuaSocket 3.0, the host name resolution
245depends on whether the socket was created by <a 245depends on whether the socket was created by
246href=#socket.tcp><tt>socket.tcp</tt></a> or <a 246<a href=#socket.tcp><tt>socket.tcp</tt></a>,
247href=#socket.tcp6><tt>socket.tcp6</tt></a>. Addresses from 247<a href=#socket.tcp4><tt>socket.tcp4</tt></a> or
248the appropriate family are tried in succession until the 248<a href=#socket.tcp6><tt>socket.tcp6</tt></a>. Addresses from
249first success or until the last failure. 249the appropriate family (or both) are tried in the order
250returned by the resolver until the
251first success or until the last failure. If the timeout was
252set to zero, only the first address is tried.
250</p> 253</p>
251 254
252<!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 255<!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->