What does "infinity" really mean on a connection timeout? Does it retry the connection?

Posted by corgrath on Stack Overflow See other posts from Stack Overflow or by corgrath
Published on 2010-06-18T11:48:14Z Indexed on 2010/06/18 11:53 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

The difference between connection and read timeout, is that read specifies how long the data connection can be open until it automatically closesc, correct?

A connection timeout specifies how long the socket should wait until a connection is established, correct?

So if a connection timeout is set to "infinity" what does that really mean? Will it try to establish a connection and if no response is given (as on packets are lost? or port is down?) it will just idle? or will

Could someone please explain the basics of network/socket timeouts? and in what situation can a client socket wait infinity?

© Stack Overflow or respective owner

Related posts about socket

Related posts about timeout