Skip to main content

We noticed that our upload program, which utilizes SubmitRequest was timeing out.  We increased the value from 100000 to 400000 and it still timed out at 100 seconds.

Seems like the increased variable should have changed the outcome.  Any ideas?

httpTimeOut = 400000   

contentType = "application/json; charset=utf-8"

result = createSecurityContext(security_context, "TLSv1.2:Min")

      if (result = 0) then

         result = createSecureRequest(postURL, postType, req_handle, security_context)

         if (result = 0) then

            result = setRequestHeader(req_handle, "Content-Type", contentType)

            if (result = 0) then

               if (token <> '') then

                  result = setRequestHeader(req_handle, "Authorization", "Bearer ":token)

               end

               result = submitRequest(req_handle, httpTimeOut, postData, respHeaders, respData, httpStatus)

               output = respData

               if (result = 0) then



------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------

We noticed that our upload program, which utilizes SubmitRequest was timeing out.  We increased the value from 100000 to 400000 and it still timed out at 100 seconds.

Seems like the increased variable should have changed the outcome.  Any ideas?

httpTimeOut = 400000   

contentType = "application/json; charset=utf-8"

result = createSecurityContext(security_context, "TLSv1.2:Min")

      if (result = 0) then

         result = createSecureRequest(postURL, postType, req_handle, security_context)

         if (result = 0) then

            result = setRequestHeader(req_handle, "Content-Type", contentType)

            if (result = 0) then

               if (token <> '') then

                  result = setRequestHeader(req_handle, "Authorization", "Bearer ":token)

               end

               result = submitRequest(req_handle, httpTimeOut, postData, respHeaders, respData, httpStatus)

               output = respData

               if (result = 0) then



------------------------------
Nelson Schroth
president
C3CompleteShop LLC
Harrison OH US
------------------------------

Nelson,

There are three sides to a  timeout: Client, Server and Network. Could the timeout be coming from elsewhere?

I recommend turning on debugging for the connection and it would not hurt to monitor the network activity as well with TCPVIEW from Microsoft SysInternals.

Regards

JJ 



------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------