#101 Re: mORMot 1 » HTTP(S) tunnel with mORMot like ngrok » 2017-12-28 10:15:33

ngrok or frp , they main and single purpose is to by pass the NAT device . if u have a PC behind your home Router \ firewall device , and u DONT have a public static ip allow u direct access that PC from outside  ,then ngrok \ frp comes handy .

#102 Re: mORMot 1 » HTTP(S) tunnel with mORMot like ngrok » 2017-12-28 07:03:36

@tueddy try frp  https://github.com/fatedier/frp/blob/master/README.md  it is opensoure .  and performance is very very good

#103 Re: mORMot 1 » Is there a way of adding extra params while sending login request? » 2017-12-23 15:48:11

Thks for the reply , i will use the "Override the TSQLRestServerAuthenticationDefault Class " approche.

#104 mORMot 1 » Multi TSQLRestServer Auth question » 2017-12-21 09:27:42

keinn
Replies: 1

if you have more than one TSQLRestServers added to TSQLHttpServer,
then the client has to Auth multiple times?
-say we build a SOA based system . each TSQLRestServer serv some services,
eg restserverA do the inventory service , RestserverB do the finance service etc,
and they all added to the same TSQLHttpServer.

i know we could do all those  in a single TSQLRestServer by implement different interface groups,
but we want the system deployed as DEcoupled as possible, so at the begining ,
we need to implement them in diffrent restservers attached to single TSQLHttpServer.
then we have the auth problem.

#105 Re: mORMot 1 » Is there a way of adding extra params while sending login request? » 2017-12-21 06:52:25

i thought that too~~ thks.
another thing , when registered my own Auth class , it won't work , because the server already have a TSQLRestServerAuthenticationDefault and a TSQLRestServerAuthenticationNone auth classes registered by default , but the Server Auth method process the auth only use the FIRST one in the auth scheme list . the other has NO changce to perform . 
but if you UnRegester all the old sheme (make yours the first) , it will work fine.  BUT!!!~~ then che CrossClient wrapper will NOT generate the auth code . since it only check if there is a TSQLRestServerAuthenticationDefault or TSQLRestServerAuthenticationNONE .
this kind of logic is a little buggy~

#106 mORMot 1 » Is there a way of adding extra params while sending login request? » 2017-12-20 05:58:01

keinn
Replies: 4

Is there a way of adding extra params while sending login request?
and process it on the server side ?

eg:l'd like to send the client version and recapcha code along with the client.setuser() method.

thks.

#107 Re: mORMot 1 » Android rest client authentification » 2017-11-24 13:13:37

today is all about mobile` , synopse really need a full functional Fmx Client . like login auth, encript, zip/unzip soa restcall etc

#108 Re: mORMot 1 » Does Mormot use TCP Loopback Fast Path? » 2017-10-21 16:41:45

it is interesting  ,look forward to mormot

#109 Re: mORMot 1 » Is the IOCP mode of THttpServer not for real? » 2017-07-26 01:16:04

got it , thanks.

just found this lib:https://github.com/winddriver/Delphi-Cross-Socket , it target all major os platform win/mac/ios/android,  using IOCP on windows, EPOLL on Linux ,KQUEUE on BSD , can handle 100k concurrent connections. so i look into our good mORMot socket  to check the implement detail ~~
thanks anyway

#110 mORMot 1 » Is the IOCP mode of THttpServer not for real? » 2017-07-25 10:47:06

keinn
Replies: 3

usually  we implement an IOCP Server by these steps:
1、Create an IO complete port by CreateIoCompletionPort
2、Create some Worker threads
3、Listen on a Network Socket
4、when there is an incoming connect socket ,bind that socket HANDLE to the complete port created in step 1 (also by CreateIoCompletionPort), then the OS can do its job.
5、worker thread loop to GetQueuedCompletionStatus and do the business

6、at last, use PostQueuedCompletionStatus to notify the worker threads to exit;

7、 Clean up .


but in THttpServer. it only create complete port once at the threadpool, when there is an client connection coming , it does NOT  do step 4.

mORMot just use IOCP as an Queue list~ am i right???

#111 Re: mORMot 1 » Brotli Compression » 2017-07-24 02:14:35

is there any plan to make the mORMot framework's Client Parts  support the Android/IOS in Delphi FireMonkey?

#112 Re: mORMot 1 » TSQLHttpClient.SessionUser does not contain the inherited detail . » 2017-07-05 01:14:12

thanks for the reply.
i have already put user logic on another table ~~~ just feel a little "coupled". may be the "data" field of TSQLAuthUser is better for store the user detail .  but then we loose some search ability ,like "field index"

#113 mORMot 1 » TSQLHttpClient.SessionUser does not contain the inherited detail . » 2017-07-04 15:46:48

keinn
Replies: 3

i have my own AuthUser Table inherited from the TSQLAuthUser

TSQLMyAuthUser = class(TSQLAuthUser)

...
end;

but ,

after success auth, the client TSQLHttpClient.SessionUser only get the TSQLAuthUser info .
i have to issue another query like  TSQLMyAuthUser.Create to retreive  the TSQLMyAuthUser detail ,
and to do this i have to grant every GROUP the  R/W access rights to the TSQLMyAuthUser  table( even if some group shoud not have this right).
i think it's a little wrong or  waste of resource.

#115 Re: mORMot 1 » Contribution: TSynRestDataset » 2017-06-21 03:03:13

@EMartin
Any updates on this wondelful TSynRestDataset ?

#116 Re: mORMot 1 » It' not consistent for deleting all rows with TRestServer » 2017-06-19 14:58:12

TRUNCATE is usefull when deleting some historical data.

#117 Re: mORMot 1 » Memcached Boilerplate HTTP Server for Synopse mORMot Framework » 2017-06-07 00:40:42

Very  Nice !!!  i finally get it worked .   
Thanks very much .
but i find that some bpo* options dos NOT work , like bpoDeleteXPoweredBy.  when i add this option, the response header still contain the X-Powered-By:mORMot.
and It seems that it does not cache The SynMustache Template Files, the Exe Still go to the Views dir to find Templates.
and another thing, does it work under Linux now?

#118 Re: mORMot 1 » Interface-base service getting http header » 2017-06-05 07:15:24

it is a little painful to use jwt by such.

#119 mORMot 1 » SynMustache bug report (maybe?) » 2015-02-04 04:40:31

keinn
Replies: 1

it can not parse or render Chinese Content .
e.g:
testTpl :=TSynMustache.parse('<h1>Hello {{data.name}} 中国中国 {{data.value}} dollars!</h1>');

mmo2.Text :=testTpl.RenderJSON('{data:{name:"中国",value:10000}}');

it just return some unreadable chars~~~

.
btw:i think add  a "loadTemplateFromFile"  func would be nice~~

#120 Re: mORMot 1 » Benchmarking QDAC3 JSON parser » 2015-02-03 04:40:56

im impressed by your great work .
is there any plan to extract json paser from mORMot framework?? so we can have this powerfull json lib?

btw:Author of QDAC already fix this .

Board footer

Powered by FluxBB