-
- Downloads
* add a new simplified version of java.util.Timer/TimedEvent
* removed all of the "temporary" threads used for adding timeouts to blocking socket operations: - use the ConnectionEstablisher's thread + a SimpleTimer.TimedEvent callback to timeout socket create - added a pool of socket handler threads (size=3 atm) for receiving any inbound sockets, which are pulled off a queue, after which a handshake occurs to verify the other side is I2NP (along side another SimpleTimer.TimedEvent callback in case that blocks) this should get the last of the temporary threads (Jetty has its own thread pool for dealing with HTTP requests, so we can ignore that thread created in the AdminRunner). The only significant reduction in threads left is to go with either NIO or UDP, but neither are happening in the immediate future.
Showing
- core/java/src/net/i2p/util/SimpleTimer.java 105 additions, 0 deletionscore/java/src/net/i2p/util/SimpleTimer.java
- router/java/src/net/i2p/router/transport/tcp/RestrictiveTCPConnection.java 4 additions, 20 deletions...et/i2p/router/transport/tcp/RestrictiveTCPConnection.java
- router/java/src/net/i2p/router/transport/tcp/SocketCreator.java 109 additions, 16 deletions.../java/src/net/i2p/router/transport/tcp/SocketCreator.java
- router/java/src/net/i2p/router/transport/tcp/TCPListener.java 128 additions, 44 deletions...er/java/src/net/i2p/router/transport/tcp/TCPListener.java
- router/java/src/net/i2p/router/transport/tcp/TCPTransport.java 8 additions, 15 deletions...r/java/src/net/i2p/router/transport/tcp/TCPTransport.java
Loading
Please register or sign in to comment