Yonle
91637c13f9
g r a m m a r
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 23:54:44 +07:00
Yonle
29cb8ab5ed
properly clear orphaned session.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 22:51:16 +07:00
Yonle
53cf7a1562
fixbug
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 22:30:05 +07:00
Yonle
ca5f9f7a8e
bouncer: count on orphans
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 21:51:15 +07:00
Yonle
26462d16df
orphan sess: admin sess must destroyed
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 17:15:41 +07:00
Yonle
7d0583791f
fix another potential memory leak
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 17:13:07 +07:00
Yonle
d81cc497f8
fixbug
2024-01-03 16:52:32 +07:00
Yonle
a404e79104
probably an fix for orphan sockets & fix potential memory leak
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 16:51:23 +07:00
Yonle
75c39b6bf5
yeet
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 16:27:40 +07:00
Yonle
bcc5c46979
remove useless code.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 16:24:02 +07:00
Yonle
7d5ab86756
orphan: send CLOSE
...
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 14:41:22 +07:00
Yonle
da562a335d
feat: Orphan Session
...
Add feature to keep and reuse an session to cut some loads off &
somewhat improve bouncing performance.
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-03 14:10:01 +07:00
Yonle
6044eb2dba
feat: add feature to only allow event from <approved_publishers>
...
Based on: https://github.com/Yonle/bostr/pull/8
Idea is originally by Takuro Furoda <https://github.com/ftkro >
This feature will only allow transmitting events from specified authors.
Suggested-by: Takuro Furoda
Signed-off-by: Yonle <yonle@lecturify.net>
2024-01-01 11:16:53 +07:00
Ryo Kanbayashi
99a076865b
several bug fixes (by ryogrid #7 )
...
* condition of if statement at line 119 seems to wrong
* Original code can't check size of client.pendingEOSE.get(data[1]) collectly
* Replaced clearInterval to clearTimeout. canceling function for timer which is created by setTimeout is clearTimeout
2023-12-25 21:12:26 +07:00
Yonle
c400c3959d
relayHandler: terminate immediately if user already disconnected.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-24 21:22:56 +07:00
Yonle
c7d37b8531
PRfix: timeoutBeforeReconnHandler, and improvements in code
...
As based in the following Pull Request:
- https://github.com/Yonle/bostr/pull/6
Suggested-By: ryogrid <ryo.contact@gmail.com>
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-24 21:16:44 +07:00
Yonle
0c8d21edf1
typofix
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-20 18:37:24 +07:00
Yonle
1efe153039
ramp the cache up, again.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-20 00:16:54 +07:00
Yonle
6b1c5e03eb
ramp the cache up no matter what
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-20 00:11:13 +07:00
Yonle
635b317d73
caching: also save into cache relays
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-19 23:48:24 +07:00
Yonle
30b627f00c
caching tweaks
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-19 23:41:33 +07:00
Yonle
592af79f9c
feat: added [cache_relays] feature
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-19 23:26:02 +07:00
Akiomi Kamakura
2873527df7
Fix typos
2023-12-19 12:05:11 +09:00
Yonle
a3b37912bc
fix resend event code
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-29 13:58:44 +07:00
Yonle
540963177a
fix verbose logging bug.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-22 16:57:14 +07:00
Yonle
ac14c698dc
introduce max EOSE score in config
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-22 16:43:19 +07:00
Yonle
e9fa7e19ee
introduce EOSE Timeout
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-22 00:46:08 +07:00
Yonle
a1b68cc77e
bouncer: allow the same subID to be REQ again
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 22:50:13 +07:00
Yonle
e3c2bf34d2
code cleaning, add more config options
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 19:14:40 +07:00
Yonle
b518022b21
major fix: fix EOSE handling
...
Array.from(relays) is actually just derivering { relays } from
config.js. Fix by changing "relays" with "socks" as that's what i am
expecting that limit from.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 13:08:52 +07:00
Yonle
b8c720aa8a
enable nip42 function for public bouncer.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-20 22:45:35 +07:00
Yonle
8b158507fb
handle since & until and fixbug
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-19 08:46:35 +07:00
Yonle
f6d623004d
do not send events after reach to limit till all relays EOSE-ed
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-19 08:37:43 +07:00
Yonle
7e00693b73
bouncer.js: small mistake fix
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-18 17:06:03 +07:00
Yonle
0f76628728
remove mode 1, and sqlite3 no longer needed
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-18 16:53:48 +07:00