#1 Re: mORMot 1 » Set SendTimeOut and ReceiveTimeout TSQLHttpClient in execution time. » 2017-02-03 10:54:09

Well, i make more some tests, and really isn't the change of timeout the problem.

I'm continue going to study my problem and if i resolve, I post what happened.

Thanks for the replies.

#2 Re: mORMot 1 » Set SendTimeOut and ReceiveTimeout TSQLHttpClient in execution time. » 2017-02-01 17:23:22

I tryed with TSQLHttpClient and TSQLHttpClientWinSock, and with the two I receive the same result...

#3 Re: mORMot 1 » Set SendTimeOut and ReceiveTimeout TSQLHttpClient in execution time. » 2017-02-01 15:31:58

I have two threads, with sendtimeout different. In this case return de exception 'HttpSendHttpResponse failed: Tentativa de operação em uma conexão de rede não existente (1229)'. Maybe I cannot work with differents timeouts in differents threads in the same time. Am I correct?

#4 mORMot 1 » Set SendTimeOut and ReceiveTimeout TSQLHttpClient in execution time. » 2017-02-01 10:09:55

rian.perassoli
Replies: 7

Can I change the SendTimeOut and ReceiveTimeout on TSQLHttpClient.Create() in execution time?
I try make the implementation but if I set differents Timeouts the program goes into this exception of method THttpApiServer.Execute on SynCtrSock.pas:

except
  on E: Exception do
    // handle any exception raised during process: show must go on!
    if not E.InheritsFrom(EHttpApiServer) or // ensure still connected
       (EHttpApiServer(E).LastError<>HTTPAPI_ERROR_NONEXISTENTCONNECTION) then
      SendError(STATUS_SERVERERROR,E.Message,E);
end;

and E.Message have 'HttpSendHttpResponse failed: Tentativa de operação em uma conexão de rede não existente (1229)'

I don't find anything like this in the forum...

Can someone help me? What can be happening?

Thanks (sorry my english)

Board footer

Powered by FluxBB