#1 2022-11-29 15:57:26

Bjoern Henke
Member
Registered: 2022-11-22
Posts: 5

ExportServerNamedPipe and TSQLRestClientURINamedPipe in mORMot2

I'm currently trying to convert some code from an ex-colleague to mORMot2.
This code uses ExportServerNamedPipe and TSQLRestClientURINamedPipe for whose I can't find something similar in mORMot2.
(I only found some comments in the mORMot2 code mentioning some NamedPipe things that don't seem to exist either.)

What should I use in mORMot2 instead of ExportServerNamedPipe and TSQLRestClientURINamedPipe?

Offline

#2 2022-11-29 18:09:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,863
Website

Re: ExportServerNamedPipe and TSQLRestClientURINamedPipe in mORMot2

Named pipes makes more troubles than solution on Windows, because they have very difficult security issues.
So we didn't moved it into mORMot 2.

What you could use is a regular HTTP connection on the loopback.
Just a blocking HTTP server could be fine, e.g. useHttpSocket.
You can try ServerThreadPoolCount = 0 for one thread per connection.

Offline

#3 2025-02-12 07:50:36

edwinsn
Member
Registered: 2010-07-02
Posts: 1,219

Re: ExportServerNamedPipe and TSQLRestClientURINamedPipe in mORMot2

It's a pity that Named pipes are no longer supported, theoretically it's much faster than http on a local machine...


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#4 2025-02-12 14:42:14

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,863
Website

Re: ExportServerNamedPipe and TSQLRestClientURINamedPipe in mORMot2

Theoritically.
Not in practice with modern Windows.

Offline

Board footer

Powered by FluxBB