aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/3Di/LoadBalancer/TcpClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ThirdParty/3Di/LoadBalancer/TcpClient.cs')
-rw-r--r--ThirdParty/3Di/LoadBalancer/TcpClient.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ThirdParty/3Di/LoadBalancer/TcpClient.cs b/ThirdParty/3Di/LoadBalancer/TcpClient.cs
index 2e4cdc7..ab1f692 100644
--- a/ThirdParty/3Di/LoadBalancer/TcpClient.cs
+++ b/ThirdParty/3Di/LoadBalancer/TcpClient.cs
@@ -37,8 +37,6 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer {
37 public class AsynchronousClient { 37 public class AsynchronousClient {
38 private static ManualResetEvent connectDone = new ManualResetEvent(false); 38 private static ManualResetEvent connectDone = new ManualResetEvent(false);
39 private static ManualResetEvent sendDone = new ManualResetEvent(false); 39 private static ManualResetEvent sendDone = new ManualResetEvent(false);
40 private static ManualResetEvent receiveDone = new ManualResetEvent(false);
41 private static String response = String.Empty;
42 40
43 public static Socket StartClient(string hostname, int port) { 41 public static Socket StartClient(string hostname, int port) {
44 try { 42 try {
@@ -114,7 +112,10 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer {
114 try { 112 try {
115 Socket client = (Socket) ar.AsyncState; 113 Socket client = (Socket) ar.AsyncState;
116 int bytesSent = client.EndSend(ar); 114 int bytesSent = client.EndSend(ar);
117 //Console.WriteLine("Sent {0} bytes to server.", bytesSent); 115 if(bytesSent > 0)
116 {
117 //Console.WriteLine("Sent {0} bytes to server.", bytesSent);
118 }
118 sendDone.Set(); 119 sendDone.Set();
119 } catch (Exception e) { 120 } catch (Exception e) {
120 Console.WriteLine(e.ToString()); 121 Console.WriteLine(e.ToString());