Changeset 7dd8f00


Ignore:
Timestamp:
Oct 7, 2009 5:09:53 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
116762e
Parents:
29a3db4
Message:

remove UDP port number from thread names for better thread dump anonymity

Location:
router/java/src/net/i2p/router/transport/udp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/udp/PacketHandler.java

    r29a3db4 r7dd8f00  
    8383        _keepReading = true;
    8484        for (int i = 0; i < _handlers.size(); i++) {
    85             I2PThread t = new I2PThread((Handler)_handlers.get(i), "Packet handler " + i + ": " + _endpoint.getListenPort());
     85            I2PThread t = new I2PThread((Handler)_handlers.get(i), "UDP Packet handler " + i + "/" + _handlers.size());
    8686            t.setDaemon(true);
    8787            t.start();
  • router/java/src/net/i2p/router/transport/udp/UDPEndpoint.java

    r29a3db4 r7dd8f00  
    4040            else
    4141                _socket = new DatagramSocket(_listenPort, _bindAddress);
    42             _sender = new UDPSender(_context, _socket, "UDPSend on " + _listenPort);
    43             _receiver = new UDPReceiver(_context, _transport, _socket, "UDPReceive on " + _listenPort);
     42            _sender = new UDPSender(_context, _socket, "UDPSender");
     43            _receiver = new UDPReceiver(_context, _transport, _socket, "UDPReceiver");
    4444            _sender.startup();
    4545            _receiver.startup();
Note: See TracChangeset for help on using the changeset viewer.