*/
this->print(this, buffer, sizeof(buffer));
- if (rad_debug_lvl >= 2) {
- DEBUG("Opening new proxy socket '%s'", buffer);
- }
-
#ifdef WITH_TCP
sock->opened = sock->last_packet = now;
if (this->fd < 0) {
this->print(this, buffer,sizeof(buffer));
- ERROR("Failed opening proxy socket '%s' : %s",
+ ERROR("Failed opening new proxy socket '%s' : %s",
buffer, fr_strerror());
home->last_failed_open = now;
listen_free(&this);
DEBUG("Trying SSL to port %d\n", home->port);
sock->ssn = tls_new_client_session(sock, home->tls, this->fd);
if (!sock->ssn) {
- ERROR("Failed starting SSL to '%s'", buffer);
+ ERROR("Failed starting SSL to new proxy socket '%s'", buffer);
home->last_failed_open = now;
listen_free(&this);
return NULL;
listen_free(&this);
return NULL;
}
+
+ this->print(this, buffer, sizeof(buffer));
+ }
+
+ if (rad_debug_lvl >= 2) {
+ DEBUG("Opened new proxy socket '%s'", buffer);
}
home->limit.num_connections++;