Evgeny Poberezkin
0d9d549cea
unlock next GET with ACK ( #418 )
2022-06-22 08:12:18 +01:00
JRoberts
d78fb8761e
ntf: change default port for notifications server SMP client agent ( #415 )
2022-06-21 17:45:28 +04:00
JRoberts
08a4b41691
v2.3.2 ( #414 )
2022-06-21 12:47:40 +04:00
JRoberts
7a72488275
ntf: use separate key to encrypt NMsgMeta ( #410 )
...
* ntf: use separate key to encrypt NMsgMeta
* key negotiation
* save key on server, use for encryption
* refactor?
* store error
* NtfQueueCreds
* server - NtfCreds
* comment, rename
* fix type
* ClientNtfCreds
* encoding
2022-06-20 17:16:26 +04:00
Evgeny Poberezkin
7fa4862a83
Merge branch 'master' into f/notifications
2022-06-19 18:51:36 +01:00
Evgeny Poberezkin
0ab44b1836
get multiple messages when notification is processed ( #411 )
...
* get multiple messages when notification is processed
* change notification property
2022-06-19 13:23:35 +01:00
Evgeny Poberezkin
d1db7d6f79
withStore runs in a single transaction ( #408 )
...
* remove store typeclass
* make withStore run single transaction
* combine 2 store calls
* refactor
* add exports
* fix catch
* correction
2022-06-18 18:01:04 +01:00
JRoberts
ec70429106
ntf: getNotificationMessage' ( #406 )
...
* ntf: getNotificationMessage'
* refactor
* ntfTs
* fix parser
* length
* fix test
* fix encryption, test
* remove test focus
* getActiveNtfToken
* rename
* Update src/Simplex/Messaging/Protocol.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* getNtfRcvQueue
* refactor
* don't fail
* Update src/Simplex/Messaging/Notifications/Protocol.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* Update src/Simplex/Messaging/Notifications/Server.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* Update src/Simplex/Messaging/Server.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* import
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-06-18 18:21:35 +04:00
JRoberts
31c78e516d
remove FQHN validation during TLS handshake ( #409 )
2022-06-17 20:25:13 +04:00
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
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
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
JRoberts
8dda99d77f
v2.1.0 ( #370 )
2022-05-11 15:57:29 +04:00