Github user bryancall commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/856#discussion_r75507271
  
    --- Diff: proxy/http/HttpSM.cc ---
    @@ -4865,12 +4865,13 @@ HttpSM::do_http_server_open(bool raw)
         md5_ctx.hash_immediate(hostname_hash, static_cast<const void 
*>(t_state.current.server->name),
                                strlen(t_state.current.server->name));
     
    -    ip_port_text_buffer addrbuf;
         if (connections->getCount(t_state.current.server->dst_addr, 
hostname_hash,
                                   
(TSServerSessionSharingMatchType)t_state.txn_conf->server_session_sharing_match)
 >=
             t_state.txn_conf->origin_max_connections) {
    -      DebugSM("http", "[%" PRId64 "] over the number of connection for 
this host: %s", sm_id,
    -              ats_ip_nptop(&t_state.current.server->dst_addr.sa, addrbuf, 
sizeof(addrbuf)));
    +      ip_port_text_buffer addrbuf;
    +      ats_ip_ntop(&t_state.current.server->dst_addr.sa, addrbuf, 
sizeof(addrbuf));
    --- End diff --
    
    You would want to call `ats_ip_nptop`.  `ats_ip_ntop` will only copy the 
address.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to