5819 Commits

Author SHA1 Message Date
64bcfd23bd expose the way to specify context env properties
remove unused lazy load code (we actively load components in the RouterContext)
2004-04-24 22:32:10 +00:00
d659447879 allow overriding the env props 2004-04-24 22:29:01 +00:00
e73eb55d75 don't create two contexts just for this I2PTunnel (one implicit from the static new Log(I2PTunnel.class) and one explicit) 2004-04-24 12:51:15 +00:00
a52cea29f4 Class.getConstructor pulls the public ones... 2004-04-24 12:49:13 +00:00
3d91e59386 la la la 2004-04-24 12:38:21 +00:00
393b1d7674 big ol' update to strip out the singletons, replacing them with
a rooted app context.  The core itself has its own I2PAppContext
(see its javadoc for, uh, docs), and the router extends that to
expose the router's singletons.  The main point of this is to
make it so that we can run multiple routers in the same JVM, even
to allow different apps in the same JVM to switch singleton
implementations (e.g. run some routers with one set of profile
calculators, and other routers with a different one).
There is still some work to be done regarding the actual boot up
of multiple routers in a JVM, as well as their configuration,
though the plan is to have the RouterContext override the
I2PAppContext's getProperty/getPropertyNames methods to read from
a config file (seperate ones per context) instead of using the
System.getProperty that the base I2PAppContext uses.
Once the multi-router is working, i'll shim in a VMCommSystem
that doesn't depend upon sockets or threads to read/write (and
that uses configurable message send delays / disconnects / etc,
perhaps using data from the routerContext.getProperty to drive it).
I could hold off until the sim is all working, but there's a
truckload of changes in here and I hate dealing with conflicts ;)
Everything works - I've been running 'er for a while and kicked
the tires a bit, but if you see something amiss, please let me
know.
2004-04-24 11:54:35 +00:00
c29a6b95ae Increased logging priority for connection timeouts
(human)
2004-04-23 14:18:48 +00:00
567a4e8361 so this is why we're not harvesting the dropped jobs/messages (d'oh)
if you update your harvester.config and rerun the router, it'll start paying attention to it
(no, unfortunately the NetMonitor doesn't periodically read this file)
2004-04-22 03:17:41 +00:00
4d3e4c1a15 d'oh 2004-04-22 03:11:12 +00:00
afeecdf4af logging, formatting 2004-04-22 03:09:03 +00:00
4fe7105e2f Implemented timeout handling to I2PTunnelServer 2004-04-21 17:58:26 +00:00
d7c3a53f2d Initial implementation of read() timeout on I2PSocket. Let's see whether it
could solve duck's problems with dangling threads...
(human)
2004-04-21 17:56:16 +00:00
58e7574a6a pull from the right field for netDb lookups sent i2p_0_3_0_4 2004-04-20 20:58:07 +00:00
94ab703c7c added prepareGUI, buildGUI,. distGUI targets 2004-04-20 20:56:55 +00:00
90350786e6 s/InterruptedException/InterruptedIOException/
(human)
2004-04-20 15:43:04 +00:00
8038e1ee7d I2PSocketManager.connect() should have thrown InterruptedIOException, and *not*
InterruptedException (oops!)
(human)
2004-04-20 15:38:55 +00:00
65f1a5fed6 write out the public dest every time we connect, /including/ the first time. (thanks duck) 2004-04-20 13:30:09 +00:00
64b94ab124 0.3.0.4 (backwards compatible, release info / docs / etc coming later today [is today tuesday already?] 2004-04-20 09:18:53 +00:00
c03cb1de5e revised GUI fetch/build/dist process - at the top level, run
'ant prepGUI' to fetch and prepare the jfreechart code
'ant buildGUI' to build the jars necessary
'ant distGUI' to build a gui.zip that contains the jars and a
license notice related to the LGPL and APL software linked
within it.
("installing" the GUI == unzip gui.zip into the I2P install dir)
2004-04-20 09:13:07 +00:00
f0004290b4 oops, pulled the wrong entry 2004-04-20 07:55:37 +00:00
7e1b49a742 fixed up some of the cleanup code to handle out of order responses
minor refactoring, formatting
2004-04-20 07:42:53 +00:00
d26c56e467 verbose4life 2004-04-20 07:39:47 +00:00
a51e0c26e5 added the eepProxy and harvester as part of the default clientApps run on startup
(with a commented out set of lines for a heartbeat client/server)
updated -cp lines accordingly
use javaw for windows users (so they can close the damn dos boxes)
toss the default logger logs into logs/ (say that three times fast)
formatting
2004-04-20 07:32:21 +00:00
180d39534c include the harvester & heartbeat monitor (but not their GUIs) 2004-04-20 07:27:41 +00:00
203d0e870a allow the user to override the I2CP options (exposed on the command line, ala
SAMBridge [[listenHost ]listenPort[ name=val]*]
where listenHost defaults to localhost, listenPort defaults to 7656, and name=val
can be the I2CP options to override (e.g. i2cp.tcp.host=localhost i2cp.tcp.port=4001)
2004-04-20 07:26:34 +00:00
bed7d09764 delete that stupid 'interactive' mode where we dump things to stdout on command
(hello, we have an admin console now, duh)
formatting touchups.
2004-04-20 07:06:39 +00:00
3c762c9a02 short circuit some handling when building custom length tunnels
if a client only wants 0 hop tunnels, give them 0 hop tunnels (rather than wasting a 2+ hop on it)
make inNetPool.dropped and inNetPool.duplicate rate stats, not frequency stats
formatting, minor refactoring
2004-04-20 02:42:56 +00:00
ba5f0fb70b correctly differentiate between handled & matched requests
logging and some minor refactoring
2004-04-20 02:18:20 +00:00
ebc3e05f23 * Made the SAM bridge aware of the new exceptions thrown by
I2PSocketManager.connect(), with better error reporting to SAM clients;
* made SAMStreamSession destroy the associated I2PSocketManager when being
  closed.
(human)
2004-04-19 21:52:52 +00:00
674ad899f9 Made HTTPTunnel aware of the new exceptions thrown by
I2PSocketManager.connect()
(human)
2004-04-19 21:48:14 +00:00
d945eb6fcf Made all the ministreaming-based apps aware of the new exceptions thrown by
I2PSocketManager.connect()
(human)
2004-04-19 21:47:06 +00:00
fb170e3c42 * Made I2PSocketManager.connect() throw several kinds of exceptions, for
better error reporting;
* Added an I2PSocketManager.destroySocketManager() method, that closes all
  the managed sockets and destroys the associated I2PSession.
(human)
2004-04-19 21:45:04 +00:00
3658cca3e5 Further simplified I2P repliable datagram format: they now contain
senderPubDest + S(H(payload)) + payload
(human)
2004-04-19 21:43:06 +00:00
5e78a41b75 remove unnecessary scrolls and packs 2004-04-18 22:53:07 +00:00
c23d8efe08 publish the new data points (crypto.garlic.decryptFail, tunnel.unknownTunnelTimeLeft) 2004-04-18 03:40:42 +00:00
0d3d4b60ce added stat - crypto.garlic.decryptFail
formatting / logging
2004-04-18 03:36:12 +00:00
38091c3c25 added stat - tunnel.unknownTunnelTimeLeft which gathers the time until expiration of tunnel messages we're dropping because we dont know about the tunnel Id.
formatting / logging
2004-04-18 03:33:53 +00:00
f0cd04ebc3 increased the delay to 2 minutes after startup before running client apps
tabs/spaces
2004-04-18 02:50:54 +00:00
3295c18829 * Added DATAGRAM supprt;
* refactoring of SAMRawSession.java, to make it derive from
  SAMMessageSession.java (parent class for SAMDatagramSession.java, too);
* removed unuseful cruft;
* some fixes;
* M-x untabify.
(human)
2004-04-17 23:19:20 +00:00
ccb309fd92 I2P repliable datagrams 2004-04-17 23:16:28 +00:00
8206a26267 sample harvester.config (defining what stats we want to harvest from the netDb) 2004-04-17 03:33:19 +00:00
8c7b91bd79 load what stats we want to monitor from a config file (harvester.config) 2004-04-17 03:32:51 +00:00
061460f978 insane error handling 2004-04-17 00:43:03 +00:00
a47c7b8f27 always send as a guaranteed message (but block as before) - this lets
udp-esque users get transparent sessionKey/sessionTag management.  we'll
probably refactor mode=guaranteed/best_effort into two concepts later,
dealing with blocking and encryption seperately.
logging and formatting fixes
2004-04-17 00:13:28 +00:00
a859908e83 handle repeated attempts to close() gracefully
logging, formatting
2004-04-17 00:04:38 +00:00
86759d2f9c DatabaseLookupMessageHandler:
added stat - netDb.lookupsReceived
 fixed formatting
HandleDatabaseLookupMessage:
 added stat - netDb.lookupsHandled
 added stat - netDb.lookupsMatched
 fixed formatting
HandleDatabaseStoreMessage:
 added stat - netDb.storeHandled
 fixed formatting
StoreJob:
 added stat - netDb.storeSent
 fixed formatting
 removed old unused code (we do dbStore through tunnels, not garlics)
 logging
SearchJob:
 fixed formatting
 logging
HandleTunnelCreateMessageJob:
 fixed formatting
 logging
PoolingTunnelManagerFacade:
 added stat - tunnel.participatingTunnels
 fixed formatting
 logging
TunnelPool:
 added getParticipatingTunnelCount()
 fixed formatting
 logging
StatisticsManager:
 revamped whats published
 fixed formatting
 logging
 fixed formatting
2004-04-16 23:52:11 +00:00
58c145ba08 Oops! Added missing file...
(human)
2004-04-16 03:44:35 +00:00
c0bb3da22f * Added support for SESSION CREATE STYLE=STREAM DIRECTION={CREATE|RECEIVE|BOTH}
* M-x untabify
(human)
2004-04-16 03:42:05 +00:00
031338d84d First step for the "connection refused" concept: incoming connections
won't be accepted until the server app actually requires an I2PServerSocket
from the I2PSocketManager.
It allows both to add a little bit of functionality, and to fix a nasty bug: it
was possible to hang an app that connects through the I2PSocketManager but
actually doesn't accept() connections (if 2 connection requests were sent
to the app, the I2PSocketManager got stuck waiting forever on
I2PServerSocketImpl.getNewSocket()).
2004-04-16 03:31:13 +00:00
2a619f3fba Slightly updated specs
(human)
2004-04-16 03:22:37 +00:00