#1 2016-05-18 12:13:04

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

A subtle "winhttp.dll error 12002 (The operation timed out)" error

The error was reported by a user.

Situation:
- Both the client and server are on the same machine, they communicate via HTTP. So the network is OK.
- Aside from this error, The TSQLHttpClient is working correctly - it's not that it could not connect to the server at all - it can.

Stack trace:

thread $afc (TOmniThread), inner exception level 1:
>> Exception, LastErrorMessage: {"EWinHTTP":"winhttp.dll error 12002 (The operation timed out)"}
.
URL: root
.
Method: GET
.
Exception Msg: winhttp.dll error 12002 (The operation timed out)
00b9c34d MyApp1.exe  DbCli               139 TDbCli.CatchAllErrors
008dd3a4 MyApp1.exe  mORMot            35385 TSQLRestClientURI.SetLastException
008dda6f MyApp1.exe  mORMot            35515 TSQLRestClientURI.URI
77b605ba ntdll.dll                              KiUserExceptionDispatcher
77865b8f KERNELBASE.dll                         RaiseException
00b7fc40 MyApp1.exe  SynCrtSock         6824 THttpRequest.Request
00b8939a MyApp1.exe  mORMotHttpClient    866 TSQLHttpClientRequest.InternalRequest
00b87a5f MyApp1.exe  mORMotHttpClient    486 TSQLHttpClientGeneric.InternalURI
008dd800 MyApp1.exe  mORMot            35478 TSQLRestClientURI.URI
008db05d MyApp1.exe  mORMot            34734 TSQLRestClientURI.ExecuteList
008d631f MyApp1.exe  mORMot            32933 TSQLRest.MultiFieldValues
008cda56 MyApp1.exe  mORMot            30237 TSQLRecord.CreateAndFillPrepare
008cdaeb MyApp1.exe  mORMot            30250 TSQLRecord.CreateAndFillPrepare

I appreciate any input!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2016-05-18 13:58:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,239
Website

Re: A subtle "winhttp.dll error 12002 (The operation timed out)" error

I guess the server side did have a long process, too long for the client to respond.

Offline

Board footer

Powered by FluxBB