Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dequis/purple-facebook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Dibowitz <phil@ipom.com>2021-02-01 11:56:30 +0300
committerGitHub <noreply@github.com>2021-02-01 11:56:30 +0300
commit1a6711f83d62e374ca2bed41fd4ca25b6bc654a2 (patch)
treeef77747e253c89d6faf07b33ea88bcb98150b311
parent3f4e9500bed9c1a7f9bb6c5381823a4facde6602 (diff)
Fix `Failed to read thrift ... assertion 'id == 2' failed` (#506)HEADmaster
This probably isn't the best fix, but it seems to make Facebook connections stable for me. After applying PR #497 you end up with frequent disconnects with: ``` Failed to read thrift: api.c:1515 fb_api_cb_publish_mst: assertion 'id == 2' failed ``` @.baltitenger said they checked that because that was the value in the messages they saw, and they didn't know what other values would mean. It seems messages with a different value don't break things (but we're probably not handling them properly), but not crashing on them is certainly better than crashing on them. Fixes #496 Signed-off-by: Phil Dibowitz <phil@ipom.com>
-rw-r--r--patches/19-fix-taNewMessage-bug.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/19-fix-taNewMessage-bug.patch b/patches/19-fix-taNewMessage-bug.patch
index 3c9593b..c2aaa9f 100644
--- a/patches/19-fix-taNewMessage-bug.patch
+++ b/patches/19-fix-taNewMessage-bug.patch
@@ -14,7 +14,7 @@
+
+ FB_API_TCHK(fb_thrift_read_field(thft, &type, &id, 0));
+ FB_API_TCHK(type == FB_THRIFT_TYPE_STRING);
-+ FB_API_TCHK(id == 2);
++ // FB_API_TCHK(id == 2);
+ FB_API_TCHK(fb_thrift_read_str(thft, NULL));
+ FB_API_TCHK(fb_thrift_read_stop(thft));
+ }