From 7edaa14c2c822e5b776edaa6534753b258d29488 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Tue, 9 Aug 2022 17:15:45 -0700 Subject: fix(libacron): infinite loop when wic_parse returns 0 This is a rather complicated way to fix backlogging issues. It asks the client to pass partial buffer, and the client also must retry with NULL buffer if ac_receive returns AC_E_AGAIN. --- client/libacron/include/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/libacron/include/common.h') diff --git a/client/libacron/include/common.h b/client/libacron/include/common.h index 79dd29b..a263f7e 100644 --- a/client/libacron/include/common.h +++ b/client/libacron/include/common.h @@ -22,6 +22,8 @@ #define AC_E_INVALID_REQUEST 6 /* Network error */ #define AC_E_NET 7 +/* Call ac_receive again */ +#define AC_E_AGAIN 8 /* Remote errors */ #define AC_ER_BAD_REQUEST 400 -- cgit v1.2.3