I'm using Delphi XE2 to build a DataSnap HTTP REST server to run as a service on Windows 2008. I read somewhere that by default the HTTP 'KeepAlive' is disabled for DataSnap server projects, if so can somebody help as to how to enable this. Thanks.
Asked
Active
Viewed 1,542 times
1 Answers
0
The Server has a property KeepAlive
, which should be set to true
.

Uwe Raabe
- 45,288
- 3
- 82
- 130
-
Which "Server" component are you referring to? Neither the TDSServer or TDSServerClass has this property. – J__ Nov 25 '15 at 10:20
-
KeepAlive is managed at the transport layer, so the `TDSTCPServerTransport` component is a good candidate. Alternatively write a `TDSTCPServerTransport1Connect` event and call `Event.Channel.EnableKeepAlive(
)`. – Uwe Raabe Nov 25 '15 at 10:58