Author: xor
Date: 2008-11-14 12:52:14 +0000 (Fri, 14 Nov 2008)
New Revision: 23568

Modified:
   trunk/plugins/WoT/introduction/IntroductionServer.java
Log:
Use the request URI.

Modified: trunk/plugins/WoT/introduction/IntroductionServer.java
===================================================================
--- trunk/plugins/WoT/introduction/IntroductionServer.java      2008-11-14 
12:51:18 UTC (rev 23567)
+++ trunk/plugins/WoT/introduction/IntroductionServer.java      2008-11-14 
12:52:14 UTC (rev 23568)
@@ -46,7 +46,7 @@
  */
 public class IntroductionServer implements Runnable, ClientCallback {
        
-       private static final long STARTUP_DELAY = 3 * 60 * 1000;
+       private static final long STARTUP_DELAY = 1 * 60 * 1000;
        private static final long THREAD_PERIOD = 30 * 60 * 1000; /* FIXME: 
tweak before release */
        public static final byte PUZZLE_COUNT = 5; 
        public static final byte PUZZLE_INVALID_AFTER_DAYS = 3;
@@ -180,7 +180,7 @@
                        ClientGetter g = mClient.fetch(p.getSolutionURI(), -1, 
this, this, fetchContext);
                        
g.setPriorityClass(RequestStarter.UPDATE_PRIORITY_CLASS); /* FIXME: decide 
which one to use */
                        mRequests.add(g);
-                       Logger.debug(this, "Trying to fetch captcha solution  " 
+ p.getSolutionURI().toString());
+                       Logger.debug(this, "Trying to fetch captcha solution 
for " + p.getRequestURI() + " at " + p.getSolutionURI().toString());
                }
                
                db.commit();
@@ -214,16 +214,16 @@
                        tempB.setReadOnly();
                
                        ClientMetadata cmd = new ClientMetadata("text/xml");
-                       InsertBlock ib = new InsertBlock(tempB, cmd, 
p.getURI());
+                       InsertBlock ib = new InsertBlock(tempB, cmd, 
p.getInsertURI());
 
                        Logger.debug(this, "Started insert puzzle from " + 
identity.getNickName());
 
                        /* FIXME: use nonblocking insert */
-                       mClient.insert(ib, false, p.getURI().getDocName());
+                       mClient.insert(ib, false, 
p.getInsertURI().getDocName());
 
                        db.store(p);
                        db.commit();
-                       Logger.debug(this, "Successful insert of puzzle from " 
+ identity.getNickName() + ": " + p.getURI());
+                       Logger.debug(this, "Successful insert of puzzle from " 
+ identity.getNickName() + ": " + p.getRequestURI());
                }
                finally {
                        tempB.free();

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to