Yes got it, so in TLS connection, TCP connect can be used as non-Blocking mode now with the PR #5013 without any issue, Could you please confirm ? Thanks, Saurabha On Tue, Jun 6, 2023 at 11:13 AM Alan DeKok <aland@deployingradius.com> wrote:
On Jun 6, 2023, at 7:32 AM, saurabha badhai <saurabha.badhai@gmail.com> wrote:
I was going through the codebase 3.0.x which includes TLS non blocking fix. I see still TCP is blocking as set to False below.
this->fd = fr_socket_client_tcp(&home->src_ipaddr, &home->ipaddr, home->port, *false*);
In my case, issue is when AAA server not reachable, service thread get stuck in the above TCP connect for around 2 mins and no other messge get processed for that time. Is the PR #5013 (Fix for issue #3501) having this fix as well ?
That should probably be "!sock->nonblock" instead of a hard-coded "false".
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html