Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-2808

Remove comments about deprecated TSVConnCreate API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • TS API

    Description

      There seems to be no use of this API, no documentations, and the code seems to imply (as pointed out by Peach), that it can never work. We should nuke it for v5.0.0.

      /* Deprectated.
         Do not use this API.
         The reason is even if VConn is created using this API, it is still useless.
         For example, if we do TSVConnRead, the read operation returns read_vio, if
         we do TSVIOReenable (read_vio), it actually calls:
         void VIO::reenable()
         {
             if (vc_server) vc_server->reenable(this);
         }
         vc_server->reenable calls:
         VConnection::reenable(VIO)
      
         this function is virtual in VConnection.h. It is defined separately for
         UnixNet, NTNet and CacheVConnection.
      
         Thus, unless VConn is either NetVConnection or CacheVConnection, it can't
         be instantiated for functions like reenable.
      
         Meanwhile, this function has never been used.
         */
      TSVConn
      TSVConnCreate(TSEventFunc event_funcp, TSMutex mutexp)
      

      Attachments

        Activity

          People

            zwoop Leif Hedstrom
            zwoop Leif Hedstrom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: