Archived Forum Post

Index of archived forum posts


HTTP "sockRecv: Socket operation timeout." on clientHandshake2

Mar 13 '17 at 17:59

We have software that tries to make a connection to a third party. The software was utilizing the Microsoft MSXML HTTP object to make HTTP POSTs. Recently the third party disabled the SSLv3 protocol and will be disabling TLS 1.0 in the near future. After the SSLv3 protocol disabling, one of our clients has 2 Windows 7 PCs that fail to make the connection to the third party server, but 1 Windows 7 PC that is successful. Numerous other clients with different OSes have no issue.

Figuring it might have been an issue in the MSXML HTTP object, I wrote a test application using the Chilkat ActiveX library we have access to. This test application connects without issue to the third party on my Windows 10 PC, on a separate client's Windows 7 PC (that is not having this issue), and on the 1 Windows PC that can still connect at the client having this connection issue. However, the other 2 PCs get an error during the clientHandshake2 process according to the log. We have numerous other clients who have no issues with this connection, it is just this one client with 2 PCs that don't work and 1 PC that does with all 3 PCs going through the same network.

1) Does Chilkat use OS level components to make the HTTP connection. For example, Windows XP cannot make TLS 1.1 or TLS 1.2 connections because it is limited to TLS 1.0 in the OS and all Windows components are affected. Could Chilkat make a TLS 1.1 or TLS 1.2 connection on a Windows XP machine? I ask this because we may have some clients that do work right now but will fail when the third party disables TLS 1.0 due to having Win XP or Win Vista clients.

2) What would prevent a handshake on PCs similar to another PC with the same OS allowing the handshake? Here is the snippet of the log where the handshake fails:

                The client cert chain is NULL.
                  Cached TLS client certificates.
                  Client cert chain is NULL.
                    sockRecv: Socket operation timeout.
                    Failed to read beginning of SSL/TLS record.
                    b: 0
                    dbSize: 0
                    nReadNBytes: 0
              Client handshake failed. (3)

Here is a successful handshake log (I have forced Chilkat to use TLS 1.2 protocol in the test):

                The client cert chain is NULL.
                  Cached TLS client certificates.
                  Client cert chain is NULL.
                          negotiatedTlsVersion: TLS 1.2
                          negotiatedCipherSuite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
                          minAcceptableRsaKeySize: 1024
                  Sending 0-length certificate (this is normal).
                      numCerts: 0
                          keyType: Public
                          hashInSize: 32
                          padding: PKCS v1.5
                          HashOid: 2.16.840.
                      Verified server key exchange.
                          name: secp256r1
                          name: secp256r1

Both the successful and erroring clients are running version of the Chilkat ActiveX single DLL, so it does not seem to be version issue. Both clients are Win 7 Pro 32 bit as well.

Accepted Answer

I've seen this behavior caused by Anti-Virus blocking the outgoing connection, and very few times, the returning connection. Sometimes this can also happen if the problem workstation shares an IP with another workstation on the network.


This ended up being that the IT at our client had only allowed the 1 PC access to connect outside the environment. As soon as they added the other 2 PCs with the same credentials, this worked just fine.