内存流处理,完善
This commit is contained in:
parent
7f79e74599
commit
0323b616f4
@ -414,6 +414,10 @@ namespace HaoYueNet.ServerNetwork
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//尝试性,清理数据
|
||||||
|
token.memoryStream.SetLength(0);
|
||||||
|
token.memoryStream.Seek(0, SeekOrigin.Begin);
|
||||||
|
|
||||||
CloseClientSocket(e);
|
CloseClientSocket(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
//using HunterProtobufCore;
|
//using HunterProtobufCore;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
@ -416,6 +417,9 @@ namespace HaoYueNet.ServerNetwork.Standard2
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//尝试性,清理数据
|
||||||
|
token.memoryStream.SetLength(0);
|
||||||
|
token.memoryStream.Seek(0, SeekOrigin.Begin);
|
||||||
CloseClientSocket(e);
|
CloseClientSocket(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -457,6 +457,9 @@ namespace HaoYueNet.ServerNetwork.Standard2
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//尝试性,清理数据
|
||||||
|
token.memoryStream.SetLength(0);
|
||||||
|
token.memoryStream.Seek(0, SeekOrigin.Begin);
|
||||||
CloseClientSocket(e);
|
CloseClientSocket(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user