Bladeren bron

加大线程池

黄宗银 1 jaar geleden
bovenliggende
commit
09e0d0ab18

BIN
Wfj/Charge32/Charge32.dll


BIN
Wfj/Charge32/Charge32.exe


BIN
Wfj/Charge32/Charge32.pdb


+ 1 - 1
Wfj/Charge32/Charge32.xml

@@ -100,7 +100,7 @@
             登录模块
             </summary>
         </member>
-        <member name="M:Charge32.Controllers.LoginController.GetUserPwd(System.String,System.Int64)">
+        <member name="M:Charge32.Controllers.LoginController.GetUserPwd(System.String,System.Int64,System.String)">
             <summary>
             获取用户密码
             </summary>

+ 3 - 3
Wfj/Charge32/DockerBuild.txt

@@ -17,9 +17,9 @@ cd DockerImg/charge32/
 docker login [email protected] registry.cn-guangzhou.aliyuncs.com
 
 # amd64上
-docker rmi registry.cn-guangzhou.aliyuncs.com/apq/charge32:amd64_20240313
-docker build -t registry.cn-guangzhou.aliyuncs.com/apq/charge32:amd64_20240313 .
-docker push registry.cn-guangzhou.aliyuncs.com/apq/charge32:amd64_20240313
+docker rmi registry.cn-guangzhou.aliyuncs.com/apq/charge32:amd64_20240314
+docker build -t registry.cn-guangzhou.aliyuncs.com/apq/charge32:amd64_20240314 .
+docker push registry.cn-guangzhou.aliyuncs.com/apq/charge32:amd64_20240314
 
 # arm64上
 docker rmi registry.cn-guangzhou.aliyuncs.com/apq/charge32:arm64

BIN
Wfj/Charge64/Charge64.dll


BIN
Wfj/Charge64/Charge64.exe


BIN
Wfj/Charge64/Charge64.pdb


+ 1 - 1
Wfj/Charge64/Charge64.xml

@@ -100,7 +100,7 @@
             登录模块
             </summary>
         </member>
-        <member name="M:Charge64.Controllers.LoginController.GetUserPwd(System.String,System.Int64)">
+        <member name="M:Charge64.Controllers.LoginController.GetUserPwd(System.String,System.Int64,System.String)">
             <summary>
             获取用户密码
             </summary>

+ 3 - 3
Wfj/Charge64/DockerBuild.txt

@@ -17,9 +17,9 @@ cd DockerImg/charge64/
 docker login [email protected] registry.cn-guangzhou.aliyuncs.com
 
 # amd64上
-docker rmi registry.cn-guangzhou.aliyuncs.com/apq/charge64:amd64_20240313
-docker build -t registry.cn-guangzhou.aliyuncs.com/apq/charge64:amd64_20240313 .
-docker push registry.cn-guangzhou.aliyuncs.com/apq/charge64:amd64_20240313
+docker rmi registry.cn-guangzhou.aliyuncs.com/apq/charge64:amd64_20240314
+docker build -t registry.cn-guangzhou.aliyuncs.com/apq/charge64:amd64_20240314 .
+docker push registry.cn-guangzhou.aliyuncs.com/apq/charge64:amd64_20240314
 
 # arm64上
 docker rmi registry.cn-guangzhou.aliyuncs.com/apq/charge64:arm64

BIN
Wfj/WsRepeater/WsRepeater.dll


BIN
Wfj/WsRepeater/WsRepeater.exe


BIN
Wfj/WsRepeater/WsRepeater.pdb


+ 1 - 0
Wfj/WsRepeater/WsRepeater.runtimeconfig.json

@@ -12,6 +12,7 @@
       }
     ],
     "configProperties": {
+      "System.Threading.ThreadPool.MaxThreads": 21474800,
       "System.GC.Server": true,
       "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
       "System.Reflection.NullabilityInfoContext.IsSupported": true,

+ 8 - 2
Wfj/WsRepeater/WsRepeater.xml

@@ -109,12 +109,12 @@
             向服务端发消息(如果未连接,自动连接后再发)
             </summary>
         </member>
-        <member name="M:WsRepeater.ActorMgr.Close(System.Int64)">
+        <member name="M:WsRepeater.ActorMgr.Close(System.Int64,System.Threading.CancellationToken)">
             <summary>
             在新任务中关闭连接,延时移除
             </summary>
         </member>
-        <member name="M:WsRepeater.ActorMgr.CloseAsync(System.Int64,System.Boolean)">
+        <member name="M:WsRepeater.ActorMgr.CloseAsync(System.Int64,System.Boolean,System.Threading.CancellationToken)">
             <summary>
             关闭连接(延时移除)
             </summary>
@@ -369,6 +369,7 @@
             <param name="ZoneID">区ID</param>
             <param name="CpToken">客户端GUID?</param>
             <param name="ForceLogin">是否强制登录(客户端首次进入时传true)</param>
+            <returns>接受WebSocket之后响应就开始了,所以就不能再返回任何Result了</returns>
         </member>
         <member name="M:WsRepeater.Controllers.GwController.GetAllActorData">
             <summary>
@@ -381,6 +382,11 @@
             角色状态检测作业
             </summary>
         </member>
+        <member name="P:WsRepeater.QuartzJobs.ActorJobs.ActorMgrJob.CTS_All">
+            <summary>
+            任务的取消令牌:本作业开启的所有后台任务
+            </summary>
+        </member>
         <member name="M:WsRepeater.QuartzJobs.ActorJobs.ActorMgrJob.Execute(Quartz.IJobExecutionContext)">
             <summary>
             每秒检测一次所有角色的连接状态,如果连接断开,且不在上下线过程中,就使其下线

+ 6 - 0
Wfj/WsRepeater/runtimeconfig.template.json

@@ -0,0 +1,6 @@
+{
+	"configProperties": {
+		// 指定工作线程池的最大线程数。
+		"System.Threading.ThreadPool.MaxThreads": 21474800
+	}
+}