Update of /cvsroot/freenet/freenet/src/freenet/transport
In directory sc8-pr-cvs1:/tmp/cvs-serv20740/src/freenet/transport

Modified Files:
        tcpConnection.java 
Log Message:
6169:
Send DataRequests asynchronously too. We get a SendFinished back. If it's unsuccessful 
we route to the next node... Minor fixes to SendFinished handling in different states.
If we have more than 2 connections, and one of them is not sending a trailer, queue 
messages to that conn despite it being over the limits. Should limit connection open 
floods... at the expense of monstrous message send times.
Make sending QueryRejected's asynchronous (relatively obscure cases, the majority are 
already covered).
Increase messageStoreSize to 10,000 because I was getting lost non-RequestDone 
messages.
Some more work on routing termination.
Send more DataNotFound's async.
Major bugfixes in OCM.createConn.
Don't set priority of WSL/RSL to max. Looked like it might be starving stuff.
Ignore SendFinished in RequestDone.
Logging, indenting, style, etc.


Index: tcpConnection.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/transport/tcpConnection.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- tcpConnection.java  15 Aug 2003 22:30:08 -0000      1.37
+++ tcpConnection.java  4 Sep 2003 22:45:06 -0000       1.38
@@ -66,14 +66,14 @@
                rsl = new ReadSelectorLoop(ibw);
                Thread rslThread = new Thread(rsl, " read interface thread");
                rslThread.setDaemon(true);
-               rslThread.setPriority(Thread.MAX_PRIORITY);
+//             rslThread.setPriority(Thread.MAX_PRIORITY);
                rslThread.start(); // inactive until given registrations
            }
            if(wsl == null) {
                wsl = new WriteSelectorLoop(obw);
                Thread wslThread = new Thread(wsl, " write interface thread");
                wslThread.setDaemon(true);
-               wslThread.setPriority(Thread.MAX_PRIORITY);
+//             wslThread.setPriority(Thread.MAX_PRIORITY);
                wslThread.start(); // inactive until given jobs
            }
        } catch (Throwable t) {

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to