[
https://issues.apache.org/jira/browse/TS-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14369790#comment-14369790
]
ASF GitHub Bot commented on TS-2157:
------------------------------------
Github user ericcarlschwartz commented on a diff in the pull request:
https://github.com/apache/trafficserver/pull/182#discussion_r26779947
--- Diff: proxy/http/HttpTransact.cc ---
@@ -288,6 +288,8 @@
find_server_and_update_current_info(HttpTransact::State* s)
/* fall through */
default:
update_current_info(&s->current, &s->server_info,
HttpTransact::ORIGIN_SERVER, (s->current.attempts)++);
+ // TS-2157 must update port here because we know struct has been set
+ s->current.server->dst_addr.port() =
s->hdr_info.server_request.port_get();
--- End diff --
this is kind of a hack-- before the port value was an int and initialized
in the transact separately from the port in addr. this no longer works getting
rid of the int port so had to add this here after we update the info.
> Replace "addr" with appropriate "src_addr" and "dst_addr" in
> ConnectionAttributes
> ---------------------------------------------------------------------------------
>
> Key: TS-2157
> URL: https://issues.apache.org/jira/browse/TS-2157
> Project: Traffic Server
> Issue Type: New Feature
> Components: Network
> Reporter: Leif Hedstrom
> Assignee: Eric Schwartz
> Fix For: 6.0.0
>
>
> This would more clearly let us encapsulate the two endpoint's (IpEndpoint)
> for each connection. In addition, we ought to be able to remove the "port"
> member from ConnectionAttributes as well, and its convoluted and overloaded
> semantics. The appropriate IpEndpoint (src_addr or dst_addr) would hold the
> port information as necessary.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)