Skip to content
Permalink
Browse files

defined TSQLDBServerRemote as cross-platform safe SynDBRemote server …

…class
  • Loading branch information
Arnaud Bouchez
Arnaud Bouchez committed Mar 24, 2020
1 parent 6a5c58c commit b4cf3749f85ec69ad39ad1fda7e714337ceee90e
Showing with 9 additions and 2 deletions.
  1. +8 −1 SynDBRemote.pas
  2. +1 −1 SynopseCommit.inc
@@ -154,7 +154,11 @@ TSQLDBServerSockets = class(TSQLDBServerAbstract)
aThreadMode: TSQLDBConnectionPropertiesThreadSafeThreadingMode=tmMainConnection); override;
end;

{$ifndef ONLYUSEHTTPSOCKET}
{$ifdef ONLYUSEHTTPSOCKET}

TSQLDBServerRemote = TSQLDBServerSockets;

{$else}

/// implements a SynDB HTTP server using fast http.sys kernel-mode server
// - under Windows, this class is faster and more stable than TSQLDBServerSockets
@@ -174,6 +178,9 @@ TSQLDBServerHttpApi = class(TSQLDBServerAbstract)
aThreadMode: TSQLDBConnectionPropertiesThreadSafeThreadingMode=tmMainConnection); override;
end;

/// the default SynDB HTTP server class on each platform
TSQLDBServerRemote = TSQLDBServerHttpApi;

{$endif ONLYUSEHTTPSOCKET}


@@ -1 +1 @@
'1.18.5888'
'1.18.5889'

0 comments on commit b4cf374

Please sign in to comment.
You can’t perform that action at this time.