aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-06 19:35:57 +0000
committerJustin Clarke Casey2008-11-06 19:35:57 +0000
commit29691a3d36906c27b7fd7955184106bd6178cb83 (patch)
tree699b590bed419108729d19e519434225f78953c3 /OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
parentMantis#2566. Thank you kindly, Diva for a patch that: (diff)
downloadopensim-SC-29691a3d36906c27b7fd7955184106bd6178cb83.zip
opensim-SC-29691a3d36906c27b7fd7955184106bd6178cb83.tar.gz
opensim-SC-29691a3d36906c27b7fd7955184106bd6178cb83.tar.bz2
opensim-SC-29691a3d36906c27b7fd7955184106bd6178cb83.tar.xz
* Test to ensure that the udp server stays active after receiving a SocketException on BeginReceive
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
index 002b493..67b8f42 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
@@ -52,7 +52,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
52 { 52 {
53 ChunkSenderTuple tuple = m_chunksToLoad.Dequeue(); 53 ChunkSenderTuple tuple = m_chunksToLoad.Dequeue();
54 reusedEpSender = tuple.Sender; 54 reusedEpSender = tuple.Sender;
55 throw new SocketException(); 55 ResetServerEndPoint(new SocketException());
56 ReceiveData(null);
56 } 57 }
57 } 58 }
58 59
@@ -60,13 +61,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
60 { 61 {
61 numBytes = 0; 62 numBytes = 0;
62 63
64 //System.Console.WriteLine("Queue size " + m_chunksToLoad.Count);
65
63 if (m_chunksToLoad.Count <= 0) 66 if (m_chunksToLoad.Count <= 0)
64 return false; 67 return false;
65 68
66 ChunkSenderTuple tuple = m_chunksToLoad.Dequeue(); 69 ChunkSenderTuple tuple = m_chunksToLoad.Dequeue();
67 RecvBuffer = tuple.Data; 70 RecvBuffer = tuple.Data;
68 numBytes = tuple.Data.Length; 71 numBytes = tuple.Data.Length;
69 epSender = tuple.Sender; 72 epSender = tuple.Sender;
70 73
71 return true; 74 return true;
72 } 75 }