Nick Mills-Barrett
782cb6c871
signalmeow/web: reset request time when retrying requests
...
When a websocket stops responding, the pending request is retried after the
connection is torn down, but it kept the original request time and was
therefore rejected as too old by the new connection's write loop.
Stamp each attempt with its own request time.
2026-08-19 17:03:36 +01:00
Tulir Asokan
f62599145f
connector,signalmeow: implement network connection resetting ( #629 )
2026-01-15 14:08:00 +02:00
Nick Mills-Barrett
9921199fa8
signalmeow/web: expose websocket ping timeouts
2026-01-09 12:08:09 +00:00
Tulir Asokan
48cc6ac0aa
signalmeow/web: always log short response bodies
2025-11-27 17:34:14 +02:00
Tulir Asokan
e4f9c344cb
signalmeow/web: don't truncate paths in logs
2025-11-27 17:34:14 +02:00
Tulir Asokan
edacab163c
client: unlink before disconnecting websocket
2025-11-24 18:22:20 +02:00
Tulir Asokan
cd598b8721
signalmeow/web: include server response content in logs
2025-11-24 18:05:24 +02:00
Tulir Asokan
bd9b96e3a0
signalmeow: move all normal authed requests to websocket
2025-11-24 17:20:53 +02:00
Tulir Asokan
f8358f6eaf
signalmeow/web: refactor SendRequest parameters
2025-11-24 17:20:53 +02:00
Nick Mills-Barrett
2d7eec319f
signalmeow/web: use exsync.Map for response channels ( #621 )
...
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2025-11-24 17:20:48 +02:00
Tulir Asokan
08d70602e1
signalmeow/web: split non-retrying errors into different type
2025-10-20 11:52:14 +03:00
Tulir Asokan
31164440c6
signalmeow/receiving: don't send decryption errors for context cancellations
2025-07-08 19:12:33 +03:00
Tulir Asokan
bd5cc56cfc
signalmeow/web: make SendRequest nil-safe
2025-07-07 15:35:45 +03:00
Tulir Asokan
b8d7cd4f49
signalmeow/receiving: adjust decryption logs
2025-06-09 21:13:54 +03:00
Tulir Asokan
901b812bb8
signalmeow/receiving: delete old incoming ciphertext hashes
2025-05-12 18:37:19 +03:00
Nick Mills-Barrett
d3b05748cb
signalmeow: immediately react to context cancellations in the websocket loop
2025-05-07 15:39:13 +01:00
Nick Mills-Barrett
cfa7f3c496
signalmeow: increase initial backoff to 10s
2025-05-07 15:39:13 +01:00
Tulir Asokan
760ae1ed09
signalmeow/web: fix panic caused by race on close
2025-04-29 23:41:49 +03:00
Toni Spets
5e72e4dadd
signalwebsocket: Close and wait for main loop when socket is closed ( #597 )
2025-04-29 14:12:08 +03:00
Tulir Asokan
ebf7e9a60d
signalmeow/web: fix writing to send channel during close
2025-03-25 12:52:13 +02:00
Tulir Asokan
6d621fc2aa
signalmeow/web: fix error type on disconnects
2025-03-20 17:37:53 +02:00
Tulir Asokan
72b0616261
signalmeow/web: don't deadlock on status channel
2025-03-13 17:43:11 +02:00
Tulir Asokan
e55601d0e0
signalmeow/web: fix another oversized channel
2025-03-13 16:41:39 +02:00
Tulir Asokan
f09966c148
signalmeow/web: remove redundant use of function pointer
2025-03-13 14:49:40 +02:00
Tulir Asokan
521f5e569d
signalmeow/web: add logs for missing responses
2025-03-13 14:48:09 +02:00
Tulir Asokan
870f0d152e
signalmeow: fix propagating errors when disconnected
2025-02-26 19:10:01 +02:00
Tulir Asokan
8afde9b247
signalmeow: update websocket auth
2025-01-15 23:40:50 +02:00
Tulir Asokan
d205154aed
signalmeow/websocket: add log when ping stops failing
2025-01-10 17:20:36 +02:00
Tulir Asokan
44f363fa4b
signalmeow/websocket: don't disconnect on first ping timeout
2025-01-07 19:08:27 +02:00
Tulir Asokan
4b63486389
signalmeow/web: add small sleep for all reconnects
2024-12-17 12:49:18 +02:00
Tulir Asokan
b01a912320
signalmeow/web: wait for all websocket loops to close
2024-12-17 12:44:01 +02:00
Tulir Asokan
710068e90c
signalmeow/web: clean up websocket code slightly
2024-12-17 12:44:01 +02:00
Tulir Asokan
4ede5dc9e1
dependencies: switch to new import path for websocket library
2024-09-13 12:35:31 +03:00
Tulir Asokan
3a32a7f46e
signalmeow: move keepalive log to trace level
2024-08-15 16:56:34 +03:00
Scott Weber
b602e9472b
Make Signal ping kill and rebuild websocket if it takes more than 20s ( #507 )
2024-05-01 10:17:15 +02:00
Tulir Asokan
00f58da3d5
Move keepalive log to debug level. Fixes #473
2024-03-26 18:11:59 +02:00
Tulir Asokan
ea0dfaa61a
Set user agents in signal requests
2024-01-14 13:31:17 +02:00
Tulir Asokan
b9f29abfcf
Add CDSI client
2024-01-13 16:26:29 +02:00
Sumner Evans
6b98c3f955
signalmeow/web: use context logger, make SendHTTPRequest use context
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-07 13:23:59 -07:00
Tulir Asokan
429125dbf5
Clean up some attachment-related things
2024-01-03 22:35:24 +02:00
Sumner Evans
59e4efd598
signalmeow: use structured logging
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2024-01-02 21:45:06 -07:00
Tulir Asokan
5842da7c4a
Add Signal root CA cert
2023-12-31 17:14:22 +01:00
Tulir Asokan
bb94d392a7
Improve ping command
2023-12-30 20:53:47 +01:00
Tulir Asokan
49ce1f530c
Add copyright headers
2023-12-17 15:54:35 +02:00
Scott Weber
8f3f50eb87
Handle ws == nil, and ws reconnect loops
2023-11-22 23:06:41 -05:00
Scott Weber
e20d746376
Increase WS read limit to 1MB from default of 32KB
2023-11-22 21:59:55 -05:00
Scott Weber
b2da336627
Perform "ClearKeysAndDisconnect" on prekey decryption errors
...
Might be a bit aggressive, but necessary because right now there are a
bunch of bridges with broken prekeys.
Required extensive work on disconnect/reconnect logic.
2023-11-20 22:28:49 -05:00
Scott Weber
da5eb0c8e7
Add TransientDisconnect debouncing, and fix BridgeState sending bug
2023-11-03 16:55:02 -04:00
Scott Weber
b308af43c4
Fix TRANSIENT_DISCONNECT on shutdown again
...
errors.Wrap would return nil if err was nil, while fmt.Errorf does not
2023-10-02 00:30:09 -04:00
Tulir Asokan
db656d4890
Fix incorrect usage of legacy pkg/errors
2023-09-30 14:39:26 +03:00