Alexander Bondarenko
da660be6e7
fix lint
2024-05-21 12:16:14 +03:00
Alexander Bondarenko
23c7efdf88
Merge remote-tracking branch 'origin/master' into ab/measure
2024-05-20 21:22:37 +03:00
Evgeny Poberezkin
e3f5d244c1
5.8.0.2
2024-05-20 17:31:08 +01:00
Alexander Bondarenko
f89d715a99
smp server: add proxy stats ( #1157 )
...
* smp-server: add proxy counters
* count simplex.im messages
* update
* fix
* get own servers from INI
* remove export
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-05-20 17:07:33 +01:00
Alexander Bondarenko
8fe18c4f6d
core: use catMaybes to collect optional replies ( #1161 )
...
* core: use catMaybes to collect optional replies
* style
* rollback agent changes and add a note
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
2024-05-20 15:48:21 +01:00
spaced4ndy
2e5433676e
xftp: check proxy before downloading from unknown server ( #1102 )
...
* xftp: check proxy before downloading from unknown server
* corrections
* remove import
* tests
* comment
* tests
* don't wrap into internal error
* fix tests
2024-05-20 14:14:04 +01:00
Evgeny Poberezkin
8b21f7ef2a
agent: aggregate multiple expired subscription responses into a single UP event ( #1160 )
...
* agent: aggregate multiple expired subscription responses into a single UP event
* clean up
* refactor processing of expired responses
* refactor
* refactor 2
* refactor unexpectedResponse
2024-05-20 07:56:51 +01:00
Evgeny Poberezkin
7a15ea59c9
Merge branch 'stable'
2024-05-19 07:58:00 +01:00
Evgeny Poberezkin
1bb6a5c43b
agent: do not increase network activity interval while offline ( #1159 )
...
* agent: do not increase network activity interval while offline
* test
2024-05-19 07:50:47 +01:00
Evgeny Poberezkin
1116aeeea1
5.8.0.1
2024-05-17 15:39:20 +01:00
Evgeny Poberezkin
077ca9c046
Merge branch 'stable'
2024-05-17 15:38:06 +01:00
Evgeny Poberezkin
33f6d2f1da
agent: optimize waiting for user network to avoid contention for state updates from multiple threads ( #1155 )
...
* haskell magic
* update
* agent: optimize waiting for user network with TChan
* clean up
* Int64
* use TVar
* cleanup
* fix
* testing
* update
2024-05-17 15:12:05 +01:00
spaced4ndy
b33e8f4370
agent: reconnect xftp clients ( #1156 )
2024-05-17 14:23:59 +01:00
Alexander Bondarenko
426f47c805
smp: use session vars for reconnecting small agent ( #1152 )
...
* smp: use session vars for reconnecting small agent
* process errors
* split session and protocol functions
* add active flag to agent
* actually invoke agent shutdown
* close proxy agent too
* restore stopping ntf subscribers
2024-05-16 19:06:27 +01:00
Alexander Bondarenko
ba7bcef399
write distributions to files
2024-05-16 21:00:55 +03:00
Alexander Bondarenko
4c7ab32386
Merge branch 'master' into ab/measure
2024-05-16 19:41:05 +03:00
Alexander Bondarenko
f884ecc3ab
collect distributions over counters
2024-05-15 23:39:57 +03:00
Evgeny Poberezkin
9af3297997
Merge pull request #1151 from simplex-chat/ep/remember-error
...
proxy: remember server connection error for some time
2024-05-15 21:12:52 +01:00
Evgeny Poberezkin
16d79da73e
config
2024-05-15 15:15:59 +01:00
Alexander Bondarenko
4b6ab5e89e
add control port stats-clients
2024-05-15 16:58:48 +03:00
Alexander Bondarenko
e19f50b66c
add proxy counters
2024-05-15 16:33:25 +03:00
Alexander Bondarenko
40c86bcf02
Merge remote-tracking branch 'origin/master' into ab/measure
2024-05-15 14:25:08 +03:00
Alexander Bondarenko
ed88441cbc
collect clientstats
2024-05-15 14:12:46 +03:00
Evgeny Poberezkin
6d19033375
proxy: remember server connection error for some time
2024-05-15 12:06:42 +01:00
Evgeny Poberezkin
2d2cc86bd8
Merge pull request #1095 from simplex-chat/proxy
...
SMP proxy feature branch
2024-05-14 21:35:51 +01:00
Evgeny Poberezkin
f51cf1deac
agent: use MVar for DB connection for more fair connection distribution between threads ( #1147 )
2024-05-14 20:04:51 +01:00
Alexander Bondarenko
e639a85bcc
stats merging on sendSigned
2024-05-14 21:58:11 +03:00
Alexander Bondarenko
63f092ce70
Merge remote-tracking branch 'origin/master' into ab/measure
2024-05-14 14:20:35 +03:00
spaced4ndy
00a2dde727
Merge branch 'master' into proxy
2024-05-14 10:41:06 +04:00
Evgeny Poberezkin
762909ce33
5.8.0.0
2024-05-13 20:35:46 +01:00
Alexander Bondarenko
3d9e5a501e
draft SEND stats update
2024-05-13 22:34:33 +03:00
Evgeny Poberezkin
512afa1e2b
agent: count received duplicate messages ( #1148 )
...
* agent: count received duplicate messages
* count total too
* names
* fix
* tuple
2024-05-13 15:16:20 +01:00
Alexander Bondarenko
2fcc8d0107
expand ClientStats
2024-05-13 16:35:19 +03:00
Evgeny Poberezkin
c4c983348f
Merge branch 'master' into proxy
2024-05-13 14:13:52 +01:00
Alexander Bondarenko
dbc6ae2a47
WIP: command rate monitoring
2024-05-13 13:15:59 +03:00
sh
969951d963
actions: ignore uploading GHC 8.10.7 binaries ( #1064 )
...
In other words, finally upload 22.04 binaries.
2024-05-13 10:46:37 +01:00
Evgeny Poberezkin
4455b8bd0e
agent: do not throw exception when command is created for deleted connection ( #1150 )
...
* agent: do not throw exception when command is created for deleted connection
* convert database busy/locked to critical alert
2024-05-13 08:10:40 +01:00
Evgeny Poberezkin
66c916dbb3
proxy: increase client timeout for proxied commands ( #1145 )
2024-05-12 21:12:01 +01:00
Evgeny Poberezkin
91cc48aabe
agent: do not mark subscriptions on expired sessions as active, mark delayed subscriptions as active on the same session, do not cancel sending expired commands ( #1127 )
...
* agent: do not mark subscriptions on expired sessions as active, do mark delayed subscriptions as active on the same session, SUBOK response in the next SMP protocol version
* client: prevent sub actions from zombie sessions (#1122 )
* client: prevent sub actions from zombie sessions
* error handling
* add AERR to pass background errors to client
* switch to activeClientSession
* put closeClient under activeClientSession
* rename
* remove AERR, do not skip processing
* move check and state update to one transaction
* catch extra UPs
* fix
* check queue is still pending before making it active
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com >
* do not forward agent error
* revert not expiring sending subs
* fixes
* track subscription responses better
* add pending connection
* Revert "revert not expiring sending subs"
This reverts commit 4310a69391 .
* do not expire sending commands
* rename
* fix race
* function
---------
Co-authored-by: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com >
2024-05-12 17:47:08 +01:00
Evgeny Poberezkin
1339a8da11
5.7.4.0
2024-05-11 23:39:28 +01:00
Evgeny Poberezkin
103ae06d55
agent: remove critical error on subscription timeout ( #1146 )
2024-05-11 23:38:27 +01:00
Evgeny Poberezkin
8516b0dd5b
proxy: negotiate client-relay version, include it in PFWD commands and in encrypted forwarded transmissions ( #1144 )
...
* proxy: negotiate client-relay version, include it in PFWD commands and in encrypted forwarded transmissions
* rename
* inline
* comment
* use correct server version when encoding forwarded commands
2024-05-11 17:11:28 +01:00
Evgeny Poberezkin
9f72b249b4
Merge branch 'master' into proxy
2024-05-11 10:25:35 +01:00
Evgeny Poberezkin
acc7faea11
5.7.3.1
v5.7.3
2024-05-10 22:24:00 +01:00
Evgeny Poberezkin
727fd8b8f5
server: more efficient response to batched subscriptions ( #1141 )
...
* server: more efficient response to batched subscriptions
* add sndMsgQ for interleaving messages with replies
* remove redundant liftIO
* refactor
* refactor2
* rename
* fix
* diff
* remove comment
* remove comment
---------
Co-authored-by: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com >
2024-05-10 22:19:11 +01:00
Evgeny Poberezkin
dc111437fd
5.7.3.0
2024-05-10 15:15:43 +01:00
Evgeny Poberezkin
b7afb725fd
proxy: send MWARN event to user on server version or host more errors ( #1140 )
...
* proxy: include delivery path in SENT event
* send MWARN event to user on server version or host more errors
* Revert "proxy: include delivery path in SENT event"
This reverts commit 5c476718ec .
2024-05-10 10:55:19 +01:00
Evgeny Poberezkin
b48215d341
proxy: additional configuration for SOCKS proxy usage in SMP proxy client ( #1138 )
...
* proxy: additional configuration for SOCKS proxy usage in SMP proxy client
* update
2024-05-09 15:36:02 +01:00
Evgeny Poberezkin
5cafd9d5c4
server: more efficient responses to batch subscriptions ( #1137 )
...
* server: more efficient responses to batch subscriptions
* comments
* comment
* enable tests
* LogError
2024-05-09 09:20:57 +01:00
Evgeny Poberezkin
817fd77332
Merge branch 'master' into proxy
2024-05-08 23:00:53 +01:00