Problems with TSPortDescriptor (TS API).
-
TSPortDescriptorParse() returns a pointer to a dynamically allocated object. There is no way to delete this object so it would be leaked ( https://github.com/apache/trafficserver/blob/85d50c2d7e916e7e30c698fdb1c32b1db7779455/src/traffic_server/InkAPI.cc#L8917 ).
-
This capability is not fully tested in regression testing ( https://github.com/apache/trafficserver/blob/85d50c2d7e916e7e30c698fdb1c32b1db7779455/src/traffic_server/InkAPITest.cc#L1484 ).
This capability is not used in any core plugin.
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.
I'd recommend changing it to take an opaque block of storage defined in "apidefs.h" that's the same size as an HttpProxyPort. AFAICT the struct is a POD so there's no destructor isue.
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.