diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-08-09 17:15:45 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-08-09 17:15:45 -0700 |
commit | 7edaa14c2c822e5b776edaa6534753b258d29488 (patch) | |
tree | 7c6dba03c89d3d9745a40d03e5b45c1f9cdf3938 /client/libacron/private/connection.h | |
parent | 1d42944d172cbc725cd025aea1c364c3f13a38e5 (diff) | |
download | acron-7edaa14c2c822e5b776edaa6534753b258d29488.tar acron-7edaa14c2c822e5b776edaa6534753b258d29488.tar.gz acron-7edaa14c2c822e5b776edaa6534753b258d29488.tar.bz2 acron-7edaa14c2c822e5b776edaa6534753b258d29488.zip |
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.
Diffstat (limited to 'client/libacron/private/connection.h')
-rw-r--r-- | client/libacron/private/connection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/libacron/private/connection.h b/client/libacron/private/connection.h index a2bb62f..34c2fbe 100644 --- a/client/libacron/private/connection.h +++ b/client/libacron/private/connection.h @@ -14,6 +14,7 @@ * Used to transfer deserialization result from receive handler to ac_receive(). */ struct ac_result { + bool blocked; bool has_result; int res; ac_obj_t *obj; |