#1209 Support TCP keepalive on win32

closed-accepted
None
5
2014-08-16
2013-03-31
No

Win32 doesn't have TCP_KEEPIDLE/TCP_KEEPINTVL but rather uses the custom SIO_KEEPALIVE_VALS WSAIoctl (see http://msdn.microsoft.com/en-us/library/windows/desktop/dd877220%28v=vs.85%29.aspx).
Here is a patch for CURLOPT_TCP_KEEPIDLE and CURLOPT_TCP_KEEPINTVL on Win32 platforms.
Unfortunately, w32api (MinGW) doesn't currently define SIO_KEEPALIVE_VALS in ws2tcpip.h, so I included the necessary definitions.

1 Attachments

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2013-03-31
    • status: open --> closed-accepted
    • assigned_to: Daniel Stenberg
    • milestone: -->
     
  • Daniel Stenberg

    Daniel Stenberg - 2013-03-31

    Thanks, applied and merged in commit c4d7c1514f. Issue closed!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks