Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-295

Change Traffic class of an established connection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.3, 4.2-beta1
    • 4.2
    • HttpCore NIO
    • None

    Description

      Request:
      Currently there is no possibility of changing the traffic class in HTTPCore, this could be fixed by exposing the methods setTrafficClass(int) and getTrafficClass() in http://docs.oracle.com/javase/7/docs/api/java/net/Socket.html. This can already be done with setSocketTimeout(int), and there is also a feature request for doing it with setTcpNoDelay() and setSocketKeepalive() (https://issues.apache.org/jira/browse/HTTPCORE-288).

      Motivation:
      Supporting traffic class could be quite beneficial for HTTPComponents as it allows projects depending on HC to control the quality of service. This could be used by e.g. Apache Synapse to give outgoing request or replies different QoS parameters depending on the client connecting to the service.

      Problems:
      As I'm not familiar enough with HTTPCore I can't give a precise suggestion here, but just by guessing the same issues put forward by this issue: https://issues.apache.org/jira/browse/HTTPCORE-288 might effect this request to.

      Attachments

        1. hc.diff
          4 kB
          Jørgen Nordmoen
        2. hc-2.diff
          6 kB
          Jørgen Nordmoen
        3. hc.diff
          7 kB
          Jørgen Nordmoen

        Activity

          People

            Unassigned Unassigned
            jorgno Jørgen Nordmoen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: