projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf4783e
)
Avoid dropping ctrl_iface on ENOBUFS error burst
author
Jouni Malinen
<jouni.malinen@atheros.com>
Sun, 11 Apr 2010 16:29:24 +0000
(19:29 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 11 Apr 2010 16:29:24 +0000
(19:29 +0300)
These bursts can result in control interface monitors being detached
even if the external program is still working properly. Use much larger
error threshold for ENOBUFS to avoid this.
wpa_supplicant/ctrl_iface_unix.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/ctrl_iface_unix.c
b/wpa_supplicant/ctrl_iface_unix.c
index
9b596ba
..
84ac760
100644
(file)
--- a/
wpa_supplicant/ctrl_iface_unix.c
+++ b/
wpa_supplicant/ctrl_iface_unix.c
@@
-525,7
+525,9
@@
static void wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv,
"%d - %s",
idx, errno, strerror(errno));
dst->errors++;
- if (dst->errors > 10 || _errno == ENOENT) {
+ if (dst->errors > 1000 ||
+ (_errno != ENOBUFS && dst->errors > 10) ||
+ _errno == ENOENT) {
wpa_supplicant_ctrl_iface_detach(
priv, &dst->addr,
dst->addrlen);