[Olsr-dev] [PATCH v1 04/18] info: drain the request when there are too many requests in flight

Ferry Huberts (spam-protected)
Sat Dec 10 18:25:14 CET 2016


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/olsrd_info.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index 6f0affc..b26b043 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -683,6 +683,7 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
 
   if (outbuffer.count >= MAX_CLIENTS) {
     /* limit the number of replies that are in-flight */
+    drain_request(ipc_connection);
     send_status_no_retries(req, ipc_connection, INFO_HTTP_SERVICE_UNAVAILABLE);
     return;
   }
-- 
2.9.3




More information about the Olsr-dev mailing list