You are not logged in.
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)
Offline
It will depend on the actual implementation class.
TSQLHttpClient is just an alias, depending on the platform it runs on.
But there is currently no way of changing those parameters once the instance is created.
Offline
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?
Offline
That error is raised when the other connection has finished by timeout, at least in my case.
Esteban
Offline
I tryed with TSQLHttpClient and TSQLHttpClientWinSock, and with the two I receive the same result...
Offline
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.
Offline