Browse Source

[mORMot] update mORMot to 2.0.4148 release; removed 64 worker thread limitation for better scaling (#7658)

Co-authored-by: pavel.mash <[email protected]>
pavelmash 2 years ago
parent
commit
77508c4600

+ 3 - 3
frameworks/Pascal/mormot/setup_and_build.sh

@@ -27,7 +27,7 @@ rm -rf ./libs
 
 
 # echo "Getting the latest pre-release URL..."
 # echo "Getting the latest pre-release URL..."
 # USED_TAG=$(wget -qO- https://api.github.com/repos/synopse/mORMot2/releases/latest | jq -r '.tag_name')
 # USED_TAG=$(wget -qO- https://api.github.com/repos/synopse/mORMot2/releases/latest | jq -r '.tag_name')
-USED_TAG="2.0.3780"
+USED_TAG="2.0.4148"
 
 
 echo "Used release tag $USED_TAG"
 echo "Used release tag $USED_TAG"
 URL="https://github.com/synopse/mORMot2/releases/download/$USED_TAG/mormot2static.7z"
 URL="https://github.com/synopse/mORMot2/releases/download/$USED_TAG/mormot2static.7z"
@@ -40,8 +40,8 @@ echo "Unpacking to ./libs/mORMot/static ..."
 rm -rf ./mormot2static.7z
 rm -rf ./mormot2static.7z
 
 
 # uncomment for fixed commit URL
 # uncomment for fixed commit URL
-URL=https://github.com//synopse/mORMot2/tarball/e567622e45caaf7056ee8ba6d1827314d945ccb2
-#URL="https://api.github.com/repos/synopse/mORMot2/tarball/$USED_TAG"
+#URL=https://github.com//synopse/mORMot2/tarball/e567622e45caaf7056ee8ba6d1827314d945ccb2
+URL="https://api.github.com/repos/synopse/mORMot2/tarball/$USED_TAG"
 echo "Download and unpacking mORMot sources from $URL ..."
 echo "Download and unpacking mORMot sources from $URL ..."
 wget -qO- "$URL" | tar -xz -C ./libs/mORMot  --strip-components=1
 wget -qO- "$URL" | tar -xz -C ./libs/mORMot  --strip-components=1
 
 

+ 2 - 2
frameworks/Pascal/mormot/src/raw.pas

@@ -574,8 +574,8 @@ begin
     threads := SystemInfo.dwNumberOfProcessors * 4;
     threads := SystemInfo.dwNumberOfProcessors * 4;
   if threads < 16 then
   if threads < 16 then
     threads := 16
     threads := 16
-  else if threads > 64 then
-    threads := 64; // prevents too many PostgreSQL per connection forks
+  else if threads > 256 then
+    threads := 256; // max. threads for THttpAsyncServer
 
 
   rawServer := TRawAsyncServer.Create(threads);
   rawServer := TRawAsyncServer.Create(threads);
   try
   try