Github user oknet commented on a diff in the pull request:
https://github.com/apache/trafficserver/pull/753#discussion_r72571589
--- Diff: iocore/net/UnixConnection.cc ---
@@ -320,14 +320,15 @@ Connection::connect(sockaddr const *target,
NetVCOptions const &opt)
int res;
- this->setRemote(target);
+ if (target != NULL)
+ this->setRemote(target);
// apply dynamic options with this.addr initialized
apply_options(opt);
cleaner<Connection> cleanup(this, &Connection::_cleanup); // mark for
close until we succeed.
- res = ::connect(fd, target, ats_ip_size(target));
+ res = ::connect(fd, &this->addr.sa, ats_ip_size(&this->addr.sa));
--- End diff --
@masaori335 con.connect() always using addr.sa as ::connect() target addr.
set addr.sa with target if target is not NULL.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---