0

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.

Jonathan Wareham
  • 3,357
  • 7
  • 46
  • 82

1 Answers1

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