Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-539

NioDatagramConnector doesn't takes the TrafficClass value set to his DatagramSessionConfig

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.0.0-M1
    • 2.0.8
    • None
    • None
    • WinXP, RHEL5 (probably not important)

    Description

      client sending datagrams without taking care to the trafficClas set in the config, so the ToS byte is not set in the packet sent from client.

      client code:

        NioDatagramAcceptor acceptor = new NioDatagramAcceptor();
        DatagramSessionConfig dcfg = ((NioDatagramAcceptor)acceptor).getSessionConfig();
        dcfg.setTrafficClass(tosByte);
        InetSocketAddress bindAddrPort  = new InetSocketAddress(originatingIP, port);
        acceptor.bind(bindAddrPort);
      

      -> connecting to another computer with NioDatagramConnector.

      for me it looks like in the newHandle method of NioDatagramConnector is not cared about TrafficClass (like it is done in NioDatagramAcceptor.open())

      The server part with the accceptor is OK and the correct ToS byte is set in the packet.
      (the same problem may be in the socket, i have to check it)

      Attachments

        Activity

          People

            elecharny Emmanuel Lécharny
            martinko martin krivosik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 20m
                20m
                Remaining:
                Remaining Estimate - 20m
                20m
                Logged:
                Time Spent - Not Specified
                Not Specified