Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: REST client timeout note implemented in Seattle?



Permlink Replies: 1 - Last Post: Feb 28, 2018 8:41 PM Last Post By: Pramod Nair
John Kaster


Posts: 913
Registered: 9/22/99
REST client timeout note implemented in Seattle?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 9, 2015 1:59 PM
I've spelunked through the code for the new TRESTClient implementation
and I can't find anywhere that the connect and read timeout values are
actually implemented. I did find "todo" exceptions getting raised.

function TRESTHTTP.GetConnectTimeout: integer;
begin
                                     
  raise ENotImplemented.Create('GetConnectTimeout');
end;
 
function TRESTHTTP.GetReadTimeout: integer;
begin
                               
//  result := FPeer.ReadTimeout;
  raise ENotImplemented.Create('GetReadTimeout');
end;


THere are no further references to the timeout values "lower" in the
code path.

Am I correct that custom timeouts are still not supported? And that the
default timeout is 30 seconds?

--
John Kaster http://johnkaster.wordpress.com
Software solutions
Pramod Nair

Posts: 105
Registered: 5/21/06
Re: REST client timeout note implemented in Seattle?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 28, 2018 8:41 PM   in response to: John Kaster in response to: John Kaster
Hi John
How did you resolve this issue please?
Thanks
Pramod

John Kaster wrote:
I've spelunked through the code for the new TRESTClient implementation
and I can't find anywhere that the connect and read timeout values are
actually implemented. I did find "todo" exceptions getting raised.

function TRESTHTTP.GetConnectTimeout: integer;
begin
                                     
  raise ENotImplemented.Create('GetConnectTimeout');
end;
 
function TRESTHTTP.GetReadTimeout: integer;
begin
                               
//  result := FPeer.ReadTimeout;
  raise ENotImplemented.Create('GetReadTimeout');
end;


THere are no further references to the timeout values "lower" in the
code path.

Am I correct that custom timeouts are still not supported? And that the
default timeout is 30 seconds?

--
John Kaster http://johnkaster.wordpress.com
Software solutions
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02