TCP/IP socket timeout per connection
-
Hi Guys, Is it possible to set TCP/IP timeout value per socket instance(connection)? ~ Vikram S
-
Hi Guys, Is it possible to set TCP/IP timeout value per socket instance(connection)? ~ Vikram S
The actual socket timeout value is based on a configuration in the operating system. So the simple answer is no, there's really no convenient way to change timeout between socket instances.
-
The actual socket timeout value is based on a configuration in the operating system. So the simple answer is no, there's really no convenient way to change timeout between socket instances.
Just went through this link. Correct me if my interpretation is wrong. http://msdn.microsoft.com/en-us/library/windows/desktop/ee470551(v=vs.85).aspx
-
Just went through this link. Correct me if my interpretation is wrong. http://msdn.microsoft.com/en-us/library/windows/desktop/ee470551(v=vs.85).aspx
My answer was based on the assumption you meant the connection timeout (the act of establishing a connection to another socket). If that's not what you meant, it doesn't apply.
-
My answer was based on the assumption you meant the connection timeout (the act of establishing a connection to another socket). If that's not what you meant, it doesn't apply.
okay. So If I have socket connection which is already established. Will I able to set a timeout so that TCP/IP implementation provided by OS, will automatically close it? The reason for asking this question is I want to maintain a connection pool and want to make sure that if no one uses socket connections from it, it should get atomically freed. ~ Vikram S