Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. TCP/IP socket timeout per connection

TCP/IP socket timeout per connection

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vikramlinux
    wrote on last edited by
    #1

    Hi Guys, Is it possible to set TCP/IP timeout value per socket instance(connection)? ~ Vikram S

    A 1 Reply Last reply
    0
    • V vikramlinux

      Hi Guys, Is it possible to set TCP/IP timeout value per socket instance(connection)? ~ Vikram S

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      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.

      V 1 Reply Last reply
      0
      • A Albert Holguin

        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.

        V Offline
        V Offline
        vikramlinux
        wrote on last edited by
        #3

        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

        A 1 Reply Last reply
        0
        • V vikramlinux

          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

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          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.

          V 1 Reply Last reply
          0
          • A Albert Holguin

            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.

            V Offline
            V Offline
            vikramlinux
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups