2655 Commits

Author SHA1 Message Date
or-else 95f190bcc5 Merge branch 'devel' of https://github.com/tinode/chat into devel 2026-02-28 10:01:02 +03:00
or-else 198719a180 increase buffers for in-cluster communications 2026-02-28 10:00:06 +03:00
Gene 0032fdd045 Merge pull request #988 from Antoanyabo/perf/sync-pool-bytes-buffer
perf(push/tnpg): reduce allocations in postMessage with sync.Pool
2026-02-28 09:37:47 +03:00
amit f2862d0a95 refactor(push): replace interface{} with any and use Reset(nil) for gzip writer 2026-02-28 10:09:31 +07:00
amit 71ba874dbc perf(tnpg): pool post body buffer and gzip writer safely
Reuse *bytes.Buffer and *gzip.Writer in postMessage to reduce allocations/GC pressure

Avoid redundant buffer reset; reset before returning to pool

Reset gzip writer to io.Discard before pooling to drop reference to request buffer
2026-02-27 17:19:22 +07:00
amit 6a93efecea perf(push): use sync.Pool for gzip writer and buffer
Reuse gzip.Writer and bytes.Buffer objects to reduce allocations in TNPG push notifications. This improves performance by minimizing garbage collection pressure during high-frequency push operations.
2026-02-26 21:34:36 +07:00
or-else 7622908b42 report an error when the client attempts to set device id w/out authenticating first 2026-02-25 17:29:48 +03:00
or-else c87d279d0f fix too broad http 500 error 2026-02-25 17:27:52 +03:00
or-else d20d77decf removed unused/unneeded code 2025-12-26 10:13:53 +03:00
or-else eafab96875 fix for broken UserUpdate 2025-12-25 21:51:21 +03:00
or-else 08f327734b removed debug logging, test fixes 2025-12-24 20:47:06 +03:00
or-else 9ae8678f39 fix: incorrect use of server status path from flag 2025-11-16 15:06:24 +03:00
or-else fea5897d70 merge next 2025-11-08 11:11:14 +03:00
or-else 6d5581ae79 simplify/improve copilot vibecoding 2025-11-06 17:24:23 +03:00
Gene b7d7868fd9 Merge pull request #970 from tinode/copilot/fix-f4f37f1f-efcc-4cb4-9ff7-148964e37222
Fix unread message counter not accounting for deleted messages
2025-11-06 17:43:56 +04:00
copilot-swe-agent[bot] a3d9c85bf7 Move unread counter update to hard delete section and simplify calculateUnreadInRanges
Co-authored-by: or-else <5938143+or-else@users.noreply.github.com>
2025-11-06 13:35:54 +00:00
copilot-swe-agent[bot] dd3d3c9990 Address code review feedback: optimize calculateUnreadInRanges and add hard delete test
Co-authored-by: or-else <5938143+or-else@users.noreply.github.com>
2025-11-06 13:24:00 +00:00
or-else 93f979c6cd simplify test 2025-11-06 11:34:25 +03:00
or-else 1faa4b0a0f reject instead of ignoring non-ROOT assigned auth level; clarifying an error message 2025-11-06 11:33:32 +03:00
or-else 6181a35572 optimized matchCORSOrigin 2025-11-04 16:16:40 +03:00
Gene 11cbbd1038 Merge pull request #977 from Cold-Coast/fix/cors_match
Fix cors match
2025-11-04 16:11:39 +04:00
Андрей Верчук d3ff7570c4 add test cases 2025-11-04 14:03:32 +03:00
Андрей Верчук 8d0498b261 fix 2025-11-04 14:03:20 +03:00
or-else db99487665 Merge branch 'devel' into next 2025-11-04 09:53:36 +03:00
or-else eb3a6711c1 bump version 2025-11-04 09:52:11 +03:00
Андрей Верчук b4cd20a208 fix 2025-10-29 14:18:52 +03:00
Андрей Верчук 06a1d79a06 add test case 2025-10-28 22:29:18 +03:00
Андрей Верчук 4a5d2af1d3 conf comment 2025-10-28 22:28:00 +03:00
Андрей Верчук e9a478f223 simplify algo 2025-10-28 22:26:07 +03:00
Андрей Верчук 803019fc52 test 2025-10-26 20:50:19 +03:00
or-else d24753c5aa fix: fs media serve ignores CORS settings 2025-10-26 19:57:42 +03:00
Андрей Верчук 4bb6cf7ddb fix cors match 2025-10-25 17:05:20 +03:00
or-else 552fc47ded all adapter tests pass, rethinkdb tests added, a bunch of bugs fixed 2025-10-15 13:57:47 +03:00
or-else 4ff1e79f73 all tests pass 2025-10-13 21:29:55 +03:00
or-else 5b1ccddf15 only UnreadCount test is failing 2025-10-13 20:20:49 +03:00
or-else fc5af500c5 mysql tests pass 2025-10-13 14:34:17 +03:00
or-else 8912bc6786 fixing mysql & mongo tests, mysql still failing 2025-10-12 20:08:35 +03:00
or-else 9ebf9fe31a old bug in mondo adapter: incorrect range when deleting messages 2025-10-12 20:07:27 +03:00
or-else 3ea10e31c2 mysql tests added 2025-10-11 22:03:32 +03:00
or-else a6f0b7f831 uidgen tests caught some benign issues 2025-10-10 20:05:27 +03:00
or-else 197d928913 better comparison in test 2025-10-10 19:15:12 +03:00
or-else 1f5fc8cbc4 more tests 2025-10-10 19:10:18 +03:00
or-else 0be0cbaf69 fix mongo adapter tests 2025-10-10 18:39:46 +03:00
or-else d0c674ef29 enable testing in all db adapters 2025-10-10 14:52:55 +03:00
or-else c4d5e111a3 a few more tests 2025-10-09 13:11:27 +03:00
or-else 8c92dcc77a Merge branch 'devel' into next 2025-10-09 11:45:42 +03:00
or-else b6b8959409 fix "call to (*testing.T).Fatal from a non-test goroutine" in tests 2025-10-09 11:39:38 +03:00
or-else 0db3182f05 Merge branch 'devel' into next 2025-10-09 09:32:48 +03:00
or-else 8678ed8b24 fix for #975: incorrect clearing of error 2025-10-09 09:28:31 +03:00
or-else 34d5dd3874 Merge branch 'devel' into next 2025-10-06 16:12:31 +03:00