beetlex-io / XRPC

dotnet high performance remote interface and delegate invoke(RPC) communication components,support millions RPS remote interface method invokes
Apache License 2.0
84 stars 22 forks source link

客户端缺少销毁或主动断连的方法 #37

Closed zzeric closed 1 year ago

zzeric commented 2 years ago

client = new XRPCClient("localhost", 9090); client.Options.ParameterFormater = new JsonPacket();//default messagepack helloSession = client.Create();

其中client和helloSession都没有Close和Dispose

beetlex-io commented 2 years ago

XRPCClient是线程安全的,针对一个host定义一个即可。

zzeric commented 2 years ago

XRPCClient是线程安全的,针对一个host定义一个即可。 现在XRPCClient是做了单例 那session呢?监测client对应session的TcpClient的Connencted是false,此时需要新建一个session,但旧的没有办法销毁

beetlex-io commented 2 years ago

旧的服务器检测到链接断开会清除