]> git.ipfire.org Git - thirdparty/hostap.git/commit
RADIUS client: Re-try connection if socket is closed on retransmit
authorJouni Malinen <j@w1.fi>
Sat, 28 Feb 2015 13:43:26 +0000 (15:43 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Feb 2015 14:40:58 +0000 (16:40 +0200)
commit347c55e216f22002246e378097a16ecb24b7c106
treeb20b0e5c67513e4d29f1e5a820bf8705f02aef25
parentabeea374a4567a6b6441dd082f319815b2e4c061
RADIUS client: Re-try connection if socket is closed on retransmit

Previously, send() was called with invalid fd = -1 in some error cases
for retransmission and this could even result in a loop of multiple such
attempts. This is obviously not going to work, so drop such attempts and
instead, try to reconnect a socket to the server if the current socket
is not valid.

In addition, initiate server failover immediately if the current socket
is not valid instead of waiting for a timeout.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/radius/radius_client.c