* one.
*/
if (r) (void) SSL_set_SSL_CTX(ssl, r->ctx);
-
+
/*
* Set an attribute saying which server has been selected.
*/
if (home->proto == IPPROTO_TCP) {
this->recv = proxy_socket_tcp_recv;
+ this->nonblock |= home->nonblock;
+
/*
* FIXME: connect() is blocking!
* We do this with the proxy mutex locked, which may
this->fd = fr_socket_client_tcp(&home->src_ipaddr,
&home->ipaddr, home->port,
#ifdef WITH_TLS
- !this->nonblock
+ this->nonblock
#else
false
#endif
this->radiusv11 = home->tls->radiusv11;
#endif
- this->nonblock |= home->nonblock;
-
#ifdef TCP_NODELAY
/*
* Also set TCP_NODELAY, to force the data to be written quickly.