aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorubit2012-07-04 18:41:36 +0200
committerubit2012-07-04 18:41:36 +0200
commitc5d2151674f083f1021984c9cb97f1b2dfdb81cf (patch)
treec89d663463e6d6322ed8dc30f38192c9855302f1 /OpenSim/Framework
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parent added a timeout paramenter to PollServiceEventArgs, so each type can define ... (diff)
downloadopensim-SC_OLD-c5d2151674f083f1021984c9cb97f1b2dfdb81cf.zip
opensim-SC_OLD-c5d2151674f083f1021984c9cb97f1b2dfdb81cf.tar.gz
opensim-SC_OLD-c5d2151674f083f1021984c9cb97f1b2dfdb81cf.tar.bz2
opensim-SC_OLD-c5d2151674f083f1021984c9cb97f1b2dfdb81cf.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Console/RemoteConsole.cs2
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceEventArgs.cs5
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/RemoteConsole.cs b/OpenSim/Framework/Console/RemoteConsole.cs
index eabb62d..e04ca1e 100644
--- a/OpenSim/Framework/Console/RemoteConsole.cs
+++ b/OpenSim/Framework/Console/RemoteConsole.cs
@@ -233,7 +233,7 @@ namespace OpenSim.Framework.Console
233 string uri = "/ReadResponses/" + sessionID.ToString() + "/"; 233 string uri = "/ReadResponses/" + sessionID.ToString() + "/";
234 234
235 m_Server.AddPollServiceHTTPHandler( 235 m_Server.AddPollServiceHTTPHandler(
236 uri, new PollServiceEventArgs(null, HasEvents, GetEvents, NoEvents, sessionID)); 236 uri, new PollServiceEventArgs(null, HasEvents, GetEvents, NoEvents, sessionID,25000)); // 25 secs timeout
237 237
238 XmlDocument xmldoc = new XmlDocument(); 238 XmlDocument xmldoc = new XmlDocument();
239 XmlNode xmlnode = xmldoc.CreateNode(XmlNodeType.XmlDeclaration, 239 XmlNode xmlnode = xmldoc.CreateNode(XmlNodeType.XmlDeclaration,
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceEventArgs.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceEventArgs.cs
index 9d512c6..2407533 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceEventArgs.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceEventArgs.cs
@@ -44,13 +44,16 @@ namespace OpenSim.Framework.Servers.HttpServer
44 public NoEventsMethod NoEvents; 44 public NoEventsMethod NoEvents;
45 public RequestMethod Request; 45 public RequestMethod Request;
46 public UUID Id; 46 public UUID Id;
47 public PollServiceEventArgs(RequestMethod pRequest, HasEventsMethod pHasEvents, GetEventsMethod pGetEvents, NoEventsMethod pNoEvents,UUID pId) 47 public int TimeOutms;
48
49 public PollServiceEventArgs(RequestMethod pRequest, HasEventsMethod pHasEvents, GetEventsMethod pGetEvents, NoEventsMethod pNoEvents, UUID pId, int pTimeOutms)
48 { 50 {
49 Request = pRequest; 51 Request = pRequest;
50 HasEvents = pHasEvents; 52 HasEvents = pHasEvents;
51 GetEvents = pGetEvents; 53 GetEvents = pGetEvents;
52 NoEvents = pNoEvents; 54 NoEvents = pNoEvents;
53 Id = pId; 55 Id = pId;
56 TimeOutms = pTimeOutms;
54 } 57 }
55 } 58 }
56} 59}