Evgeny Poberezkin
b58523d4a2
v2.3.1
2022-06-16 17:17:08 +01:00
Evgeny Poberezkin
9f981042b9
v2.3.1
2022-06-16 17:15:16 +01:00
JRoberts
8c2227ccce
ntf: fix test ( #405 )
2022-06-16 19:22:21 +04:00
Evgeny Poberezkin
bca44ae54a
Merge branch 'master' into f/notifications
2022-06-16 15:41:30 +01:00
Evgeny Poberezkin
50ddcd3a13
log weekly and monthly active queues ( #404 )
...
* log weekly and monthly active queues
* update
2022-06-16 15:35:45 +01:00
JRoberts
3336f987c3
ntf: SCHK, cancel actions on errors, wait until action ts before executing ( #402 )
...
* SCHK
* NSACheck
* updateSubFutureTs
* dont execute too early
* fix diffTimeToMillis
* rename function
* errors
* nested status
* increase ntfSubCheckInterval
* adjust import
* Update src/Simplex/Messaging/Agent/NtfSubSupervisor.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
* Update src/Simplex/Messaging/Agent/NtfSubSupervisor.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
* refactor rescheduleAction
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
2022-06-16 16:11:46 +04:00
Evgeny Poberezkin
1d56ef3a60
agent method to GET message ( #403 )
...
* agent method to GET message
* correction
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
2022-06-16 12:35:17 +01:00
Evgeny Poberezkin
0c45e0bf76
Merge branch 'master' into f/notifications
2022-06-16 08:49:26 +01:00
Evgeny Poberezkin
5ccebaeb21
fix transport (treat "" as eof, remove threadId), upgrade TLS to 1.6.0 ( #401 )
2022-06-16 08:49:07 +01:00
Evgeny Poberezkin
5f94240ed4
remove DB connection pool to prepare for using semaphores ( #400 )
2022-06-15 14:11:03 +01:00
JRoberts
331918bac7
ntf: agent tests ( #399 )
2022-06-15 14:22:55 +04:00
JRoberts
f7bd8a3982
ntf: agent ntf workers implementation, store methods ( #394 )
2022-06-14 14:34:18 +04:00
Evgeny Poberezkin
68c2682e70
ios: synchronizing processing between app & nse ( #398 )
...
* ios: synchronizing processing between app & nse
* update rfc
* add sequence diagram
* manage agent phase
* track agent operation and phase changes
* update
* remove APInactive
* Update src/Simplex/Messaging/Agent/Protocol.hs
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
2022-06-14 13:27:45 +04:00
Evgeny Poberezkin
62485b9367
re-deliver duplicate message if it was not acknowledged by the user, ignore otherwise ( #397 )
...
* re-deliver duplicate message if it was not acknowledged by the user, ignore otherwise
* delete message after ACK
2022-06-13 08:27:08 +01:00
Evgeny Poberezkin
91802fe94f
Merge branch 'master' into f/notifications
2022-06-12 16:49:56 +01:00
Evgeny Poberezkin
0a71822dd0
v2.3.0: save and restore messages when the server is restarted ( #395 )
...
* save and restore messages when server is restarted
* read file line by line
* add import
* optmize restoring messages by reading the whole file
* update version to 2.3.0
* update scripts
* add script
* update readme
2022-06-12 15:59:14 +01:00
JRoberts
9c12b4edc0
ntf: agent spike, NtfSupervisor ( #392 )
...
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
2022-06-10 16:35:06 +04:00
Evgeny Poberezkin
c1348aa54f
SMP connection handshake v2 ( #390 )
...
* SMP connection handshake v2
* hadshake v2 [mostly] works
* all tests pass, some race conditions remain
* fix build
* fix race conditions, send CON after all HELLOs in duplexHandshake mode
* add comments
* comment
* add comments
2022-06-09 13:47:07 +01:00
Evgeny Poberezkin
4220c3bdaf
Merge branch 'master' into f/notifications
2022-06-08 09:49:58 +01:00
Evgeny Poberezkin
7736ef8576
v2.2.1
2022-06-08 09:08:34 +01:00
Evgeny Poberezkin
80309a0089
fix possible leak ( #391 )
...
* fix possible leak
* remove subscriptions map from the client
2022-06-08 08:59:12 +01:00
JRoberts
bfb556c860
ntf: test notification subscription ( #389 )
2022-06-07 19:14:51 +04:00
Evgeny Poberezkin
3f985e8fd7
Merge branch 'master' into f/notifications
2022-06-07 14:17:05 +01:00
Evgeny Poberezkin
a3d1f5540d
v2.2.0
2022-06-07 11:55:28 +01:00
Evgeny Poberezkin
3f69636f1a
fix sockets/threads/memory leak ( #388 )
...
* fix sockets/threads/memory leak
* refactor
2022-06-07 11:52:32 +01:00
Evgeny Poberezkin
60294521f4
add msgId to ACK to avoid the risks of losing messages with concurrent delivery (in app/NSE) ( #387 )
...
* add msgId to ACK to avoid the risks of losing messages with concurrent delivery (in app/NSE)
* update ACK to only remove message and update stats if msgId matches
* add tests, fix
* rename sameMsgId/msgDeleted
2022-06-07 10:18:40 +01:00
Evgeny Poberezkin
4b3d04bd27
support message flags visible to SMP server to control notifications (and for any future extensions) ( #386 )
...
* support stopping and resuming agent (#385 )
* export agentDbPath
* support fully closing and resuming agent
* whitespace
* clean up
* support message flags visible to SMP server to control notifications (and for any future extensions)
* simplify message flags encoding
* GET command
2022-06-06 12:59:45 +01:00
JRoberts
0dc34cd287
ntf: NMSG, remove NtfTokenId from subscriptionLookup key ( #384 )
2022-06-06 14:52:22 +04:00
Evgeny Poberezkin
628930df1f
support stopping and resuming agent ( #385 )
...
* export agentDbPath
* support fully closing and resuming agent
* whitespace
* clean up
2022-06-04 13:08:05 +01:00
JRoberts
46ba047077
ntf: IDSUB response, check notifierKey and return subId on repeat SNEW ( #383 )
2022-06-02 19:36:56 +04:00
JRoberts
facb6f4561
ntf: separate notifierKey from SMPQueueNtf ( #382 )
2022-06-02 15:36:16 +04:00
JRoberts
6a27b82759
ntf: SMP subscribers logic ( #381 )
2022-06-02 14:52:14 +04:00
JRoberts
b5ccce0f6a
ntf: store get methods ( #380 )
2022-06-01 21:03:32 +04:00
JRoberts
b60408837a
notifications: SNEW draft ( #378 )
2022-06-01 18:42:35 +04:00
JRoberts
c2ec691a46
ntf subscription diagram ( #377 )
2022-05-31 15:40:43 +04:00
Evgeny Poberezkin
ef7c66762e
update script to send test notifications
2022-05-30 21:16:25 +01:00
JRoberts
9f6316fa6d
fix getDeviceNtfToken ( #376 )
2022-05-30 22:58:47 +04:00
JRoberts
95a2f7560d
add 2.1.1 to changelog
2022-05-25 10:08:55 +04:00
Evgeny Poberezkin
b67c3e5935
version 2.1.1 ( #375 )
2022-05-25 09:38:17 +04:00
Evgeny Poberezkin
ce3ca08199
server: CLI warning when deleting server configuration ( #371 )
...
* server: CLI warning when deleting server configuration
* correction
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
2022-05-24 19:45:22 +01:00
Evgeny Poberezkin
fd410280b5
gracefully close sockets on client disconnection ( #373 )
...
* gracefully close sockets on client disconnection
* remove -threaded
2022-05-24 19:38:14 +01:00
Evgeny Poberezkin
c74f4d729b
create/verify agent schema during tests ( #374 )
...
* create/verify agent schema during tests
* add --indent to .schema, enable all tests
* remove -threaded from test
2022-05-24 19:28:40 +01:00
Evgeny Poberezkin
49070fffe0
make server compatible with old ini files ( #372 )
...
* make server compatible with old ini files
* fix
* clean up
2022-05-18 18:30:06 +01:00
JRoberts
8dda99d77f
v2.1.0 ( #370 )
2022-05-11 15:57:29 +04:00
Evgeny Poberezkin
4e4eea34f9
server: configuration to expire inactive clients in ini file ( #369 )
...
* server: configuration to expire inactive clients in ini file
* corrections
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
2022-05-11 15:43:54 +04:00
Evgeny Poberezkin
964daf5442
v2.0.0 ( #360 )
...
* v2.0.0: notification server release
* update changelog
* update changelog
* update changelog
2022-05-03 14:32:37 +01:00
Evgeny Poberezkin
6a1cea93b5
fix: disconnect socket
2022-04-30 14:09:42 +01:00
Evgeny Poberezkin
ace94d7c69
log server stats ( #367 )
...
* log server stats
* separate stats updates from the existing transactions
2022-04-30 13:47:21 +01:00
Evgeny Poberezkin
1064e9c315
disconnect inactive clients ( #366 )
...
* disconnect inactive clients
* update test description
* use one thread per client to disconnect inactive clients
* remove comments
* more comments
2022-04-30 10:56:01 +01:00
Evgeny Poberezkin
2733a09a40
limit concurrency when resubscribing, method to resubscribe if not subscribed ( #368 )
2022-04-30 09:36:52 +01:00