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