Watch, Follow, &
Connect with Us

Welcome, Guest
Guest Settings
Help

Thread: DataSnap REST Server Client's timeout issue - Berlin


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Mar 2, 2017 9:04 PM Last Post By: Thiago Oliveira Threads: [ Previous | Next ]
Md. Shariful Al...

Posts: 62
Registered: 9/9/01
DataSnap REST Server Client's timeout issue - Berlin  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 22, 2016 1:56 PM
I am in some strange situation. I made DataSnap REST server and client. All REST server's methods are call by client through TRESTClient. My REST Server is Apache Module. Also I used TSQLConnection & TDSClientCallbackChannelManager for Peer-to-Peer callback in cleint. I set TDSServer ChannelResponseTimeout = 0 and TDSHTTPWebDispatcher SessionTimeout = 0. Still my client timed out after few seconds. I set TDSClientCallbackChannelManager CommunicationTimeout=0 and ConnectionTimeout=0. The error I am getting in TWinHTTPClient.DoExecuteRequest method of System.Net.HttpClient.Win. Strange thing is on debug mode I got AV but in exe mode I don't receive any AV but none of my callback is working though the REST methods are executing. I also tried set LifeCyle of TDSServerClass to Session & Invocation, both gives timed out. Below is some code for DSClientCallback & TSQLConnection:

SQLConnection.Params.Values['HostName'] := SERVERIP;
SQLConnection.Params.Values['Port'] := SERVER_PORT.ToString;
SQLConnection.Params.Values['ConnectionTimeout'] := '0';
SQLConnection.Connected := True;

ClientCallbackManager.CommunicationTimeout := '0';
ClientCallbackManager.ConnectionTimeout := '0';
ClientCallbackManager.DSHostname := SERVERIP;
ClientCallbackManager.DSPort := SERVER_PORT.ToString;
fClientCallbackId := TDSTunnelSession.GenerateSessionId;
ClientCallbackManager.DSPath := 'mypath';
ClientCallbackManager.ManagerId := TDSTunnelSession.GenerateSessionId;
fClientId := ClientCallbackManager.ManagerId;
ClientCallbackManager.RegisterCallback(fClientCallbackId,
'mychannel', TServerCallback.Create);

What I am doing wrong or missing? Please help

luke lonergan

Posts: 12
Registered: 8/25/16
Re: DataSnap REST Server Client's timeout issue - Berlin  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 30, 2016 12:18 AM   in response to: Md. Shariful Al... in response to: Md. Shariful Al...
Through latest client server activity you can quick recover your data from your system when you lost by mistake.
Thiago Oliveira

Posts: 1
Registered: 2/25/14
Re: DataSnap REST Server Client's timeout issue - Berlin  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 2, 2017 9:04 PM   in response to: luke lonergan in response to: luke lonergan
luke lonergan wrote:
Through latest client server activity you can quick recover your data from your system when you lost by mistake.

I've the same problem.

Is this a bug from Delphi?

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02