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
558dd46543
minor improvement in push
2025-05-14 13:16:36 +03:00
or-else
f4db96d8f9
fixes after running analysis/modernize
2025-05-12 17:52:09 +03:00
or-else
2a8c865b9f
merge devel
2025-02-09 12:23:37 +03:00
or-else
1cef0694a4
clarity TNPG instructions
2023-08-31 11:57:44 +03:00
or-else
194e7485ec
replaced "interface{}" with "any"
2023-04-12 18:02:35 -04:00
or-else
18b61663e4
Merge branch 'next' of https://github.com/tinode/chat into next
2023-02-12 20:03:03 -08:00
or-else
3ab9d9a5cb
docs updated
2023-02-12 20:02:55 -08:00
aforge
9f9d8de7ed
Fix incorrect unread count in user cache.
...
Messages marked as read by sender must not be counted as unread.
Also, exposed a bit more debug info.
2023-02-10 16:09:17 -08:00
or-else
123f64844f
lint went too far
2023-01-14 20:26:31 -08:00
or-else
9b00e62e33
a bunch of lint warnings fixed
2023-01-14 20:24:09 -08:00
or-else
774e954d01
allow audio-only call pushes
2023-01-07 16:20:00 -08:00
or-else
1b277e2e41
lint warnings fixed
2022-11-21 16:15:34 -08:00
or-else
6acd635834
silence message edit notifications
2022-11-21 16:10:14 -08:00
aforge
961f722a9d
iOS: Do not show push alert for silent notifications.
2022-11-10 16:16:36 -08:00
aforge
f700e204d0
Do not present system alert for video calls push notifications.
2022-11-08 18:15:25 -08:00
aforge
1aa7942a29
Add sound to aps payload.
2022-10-21 22:24:03 -07:00
or-else
30fef60465
fix tnpg URL construction
2022-08-05 17:13:59 -07:00
or-else
be7d554b50
disable pushkit, minor code rearrangement
2022-08-05 15:29:21 -07:00
or-else
1d044adc62
review fixes, bug fixes
2022-08-03 12:56:12 -07:00
or-else
e33024435b
more consistent error wording in googleapi.Error decoding
2022-08-02 17:18:25 -07:00
or-else
399a5a7789
use common googleapi.Error decoder
2022-08-02 17:12:52 -07:00
or-else
438d98b169
a bug fix and a few more tweaks in tnpg
2022-08-02 16:11:21 -07:00
or-else
a9637078bd
refactoring of fcm error handling
2022-08-01 20:12:25 -07:00
or-else
fcbfeacb6b
added apns errors
2022-07-30 20:06:19 -07:00
or-else
99a9e79555
added definitions of FCM error codes
2022-07-30 17:50:49 -07:00
or-else
f6ba6f18bd
handling tnpg errors from the new version of pushgw
2022-07-30 15:37:56 -07:00
or-else
9da446b8f5
fix comment wording
2022-07-28 19:21:19 -07:00
or-else
80e413183a
lint godoc warnings fixed
2022-07-28 19:19:46 -07:00
or-else
743432cb32
convert literal strings to constants
2022-07-28 17:03:42 -07:00
or-else
99b8dc0c5e
move common type defs to a separate package
2022-07-28 14:37:35 -07:00
or-else
5c21325161
refactoring TNPG to work with fcm v1
2022-07-28 12:06:36 -07:00
or-else
3081d186e3
refactoring tnpg for fcm v1
2022-07-27 14:19:48 -07:00
or-else
8c69cc7fbb
more unused code removed
2022-07-27 12:44:21 -07:00
or-else
ba348750b8
unused sendLegacy removed
2022-07-27 12:41:21 -07:00
or-else
5cc8186303
remove commented out aps.Category assignment, add link to Apple docs
2022-07-27 10:27:50 -07:00
or-else
aa1250a04e
send ios voip pushes only for webrtc=started
2022-07-26 11:58:28 -07:00
or-else
e0785cfd62
correctly use time to live & expiration time
2022-07-21 17:45:18 -07:00
or-else
bef8812073
removed some debug logging, more informative error message
2022-07-21 15:51:21 -07:00
or-else
43b366703a
everything seems to work except VOIP pushes
2022-07-21 15:13:07 -07:00
or-else
ef00570c7a
seems to work for web and android
2022-07-20 15:38:51 -07:00
or-else
3ea248e021
more refactoring (wip)
2022-07-19 18:05:03 -07:00
or-else
0b8ba7f949
adding v1 fcm, wip
2022-07-18 17:56:59 -07:00
or-else
25eb5c0c58
refactoring for fcm v1 support
2022-07-17 13:30:10 -07:00
aforge
a7398cd272
Make video call notifications silent.
...
Also remove alert, badge and sound from ios video call notifications.
2022-07-01 18:27:52 +03:00
or-else
9f306a621e
incorrect struct tags in push
2022-06-19 14:48:16 -07:00