Update of /cvsroot/freenet/freenet/src/freenet/interfaces/servlet
In directory sc8-pr-cvs1:/tmp/cvs-serv2307/src/freenet/interfaces/servlet
Modified Files:
HttpServletContainer.java
Log Message:
6171:
Add ConnectionHandler.useValue(). Use it to queue messages to the least congested
connection if we can't get a non-sending() connection. Prevents a nasty feedback
situation. Also tweak the 2 connections logic - it's 2 *message* connections, not 2
connections full stop.
Process queued connections immediately on going below lowRunningConnections, don't
wait for the next incoming connection.
Update LocalHTTPInterface a bit (not actually used, just for testing new HTTP
infrastructure).
Logging, indenting.
Index: HttpServletContainer.java
===================================================================
RCS file:
/cvsroot/freenet/freenet/src/freenet/interfaces/servlet/HttpServletContainer.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- HttpServletContainer.java 30 Jun 2003 13:32:30 -0000 1.8
+++ HttpServletContainer.java 5 Sep 2003 03:32:43 -0000 1.9
@@ -120,21 +120,21 @@
String uri = req.getRequestPath();
String method = req.getMethod();
-// Core.logger.log(this, "Getting servlet for "+method+" "+uri,
-// new Exception("debug"), Core.logger.DEBUG);
+ Core.logger.log(this, "Getting servlet for "+method+" "+uri,
+ new Exception("debug"), Core.logger.DEBUG);
ServletPool pool = getServletPool(uri, method);
if (pool == null) {
-// Core.logger.log(this, "Null pool for "+method+" "+uri,
-// Core.logger.DEBUG);
+ Core.logger.log(this, "Null pool for "+method+" "+uri,
+ Core.logger.DEBUG);
// directory servlet check for URIs missing the terminal slash
if (!uri.endsWith("/") && getServletPool(uri + "/", method) != null) {
-// Core.logger.log(this, "Missing slash, redirecting: "+method+" "
-// +uri, Core.logger.DEBUG);
+ Core.logger.log(this, "Missing slash, redirecting: "+method+" "
+ +uri, Core.logger.DEBUG);
return new MovedServlet(uri + "/");
}
-// Core.logger.log(this, "404ing "+method+" "+uri,
-// Core.logger.DEBUG);
+ Core.logger.log(this, "404ing "+method+" "+uri,
+ Core.logger.DEBUG);
return new DumbServlet(HttpServletResponse.SC_NOT_FOUND);
}
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs