]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS UPnP: Handle HTTP initiation failures for events more properly
authorJouni Malinen <jouni@codeaurora.org>
Thu, 4 Jun 2020 18:24:04 +0000 (21:24 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 8 Jun 2020 14:14:45 +0000 (17:14 +0300)
commit85aac526af8612c21b3117dadc8ef5944985b476
tree6184e00344b3d4e1a304fb4ff2b44ed3058b0254
parentf7d268864a2660b7239b9a8ff5ad37faeeb751ba
WPS UPnP: Handle HTTP initiation failures for events more properly

While it is appropriate to try to retransmit the event to another
callback URL on a failure to initiate the HTTP client connection, there
is no point in trying the exact same operation multiple times in a row.
Replve the event_retry() calls with event_addr_failure() for these cases
to avoid busy loops trying to repeat the same failing operation.

These potential busy loops would go through eloop callbacks, so the
process is not completely stuck on handling them, but unnecessary CPU
would be used to process the continues retries that will keep failing
for the same reason.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/wps/wps_upnp_event.c