Skip to content

Commit

Permalink
defined TSQLDBServerRemote as cross-platform safe SynDBRemote server …
Browse files Browse the repository at this point in the history
…class
  • Loading branch information
Arnaud Bouchez committed Mar 24, 2020
1 parent 6a5c58c commit b4cf374
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion SynDBRemote.pas
Expand Up @@ -154,7 +154,11 @@ TSQLDBServerSockets = class(TSQLDBServerAbstract)
aThreadMode: TSQLDBConnectionPropertiesThreadSafeThreadingMode=tmMainConnection); override; aThreadMode: TSQLDBConnectionPropertiesThreadSafeThreadingMode=tmMainConnection); override;
end; end;


{$ifndef ONLYUSEHTTPSOCKET} {$ifdef ONLYUSEHTTPSOCKET}

TSQLDBServerRemote = TSQLDBServerSockets;

{$else}


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


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

{$endif ONLYUSEHTTPSOCKET} {$endif ONLYUSEHTTPSOCKET}




Expand Down
2 changes: 1 addition & 1 deletion SynopseCommit.inc
@@ -1 +1 @@
'1.18.5888' '1.18.5889'

0 comments on commit b4cf374

Please sign in to comment.