semisol on Nostr: if you don’t trust the client that they are dropping subscriptions when not needed, ...
if you don’t trust the client that they are dropping subscriptions when not needed, what do you trust them for? you may as well modify their filters arbitrarily because you don’t trust that they don’t want what they say they do
if you have resource constraints, you should let everything fail hard by refusing new subscriptions or closing entire connections, not silently dropping open REQs
Published at
2024-07-31 19:57:30Event JSON
{
"id": "43d518dac3c47d22bfd56189d61145f454c4b3d3495a764a415704407526d86b",
"pubkey": "52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
"created_at": 1722455850,
"kind": 1,
"tags": [
[
"e",
"ad5d6b8d10bd63afddfb34fb1c924e7aa76dd0c2aca5caa8f58334f7ddad502c",
"wss://hist.nostr.land/",
"root"
],
[
"e",
"9b76fa3a2045bf920bb983abc9ad6c62a9d45d65118a39fce40c4eb048e257c1",
"",
"reply"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
]
],
"content": "if you don’t trust the client that they are dropping subscriptions when not needed, what do you trust them for? you may as well modify their filters arbitrarily because you don’t trust that they don’t want what they say they do\n\nif you have resource constraints, you should let everything fail hard by refusing new subscriptions or closing entire connections, not silently dropping open REQs",
"sig": "f6a7edad41cb526ba5bd1d5035e02a7d44b34fe537810dc45f11493df56069bbe30e1479c6525977852b41e1f8c38a91f97ad57564d823af19038fc618db94d4"
}