-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Trouble with SLPolicyServerReceiver (Log2Console / src / Log2Console / Receiver / SLPolicyServerReceiver.cs)
What's the meaning of reading operation here? Reading buffer fails with the IO-exception
void ProcessRequest(Socket socket)
{
using (var client = new TcpClient { Client = socket, ReceiveTimeout = 5000 })
using (var s = client.GetStream())
{
var buffer = new byte[PolicyRequestString.Length];
s.Read(buffer, 0, buffer.Length);
s.Write(_policy, 0, _policy.Length);
}
}
Metadata
Metadata
Assignees
Labels
No labels