redmp (EDITED) on Nostr: #haskell 'req' http client library has bad defaults: - it retries a failed request 5 ...
#haskell 'req' http client library has bad defaults:
- it retries a failed request 5 times with 50ms delay [potential DOS]
- provides json deserialization via aeson instances but no way to access received json on failure
Published at
2024-12-01 09:40:28 GMTEvent JSON
{
"id": "93cb7207914fe5540ab1cd1b27aa2ef6a34da2f1baf5e009015ea06926a7cb62",
"pubkey": "7d5d98e9b3acd1bfba5996386815be68158d6dc8ea88a9251e79bc54e42dd288",
"created_at": 1733046028,
"kind": 1,
"tags": [
[
"proxy",
"https://recurse.social/@redmp/113576904521409117",
"web"
],
[
"t",
"haskell"
],
[
"proxy",
"https://recurse.social/users/redmp/statuses/113576904521409117",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://recurse.social/users/redmp/statuses/113576904521409117",
"pink.momostr"
],
[
"-"
]
],
"content": "#haskell 'req' http client library has bad defaults:\n\n- it retries a failed request 5 times with 50ms delay [potential DOS]\n\n- provides json deserialization via aeson instances but no way to access received json on failure",
"sig": "3c2ba173262c9264a57cead08347bddf4efdcec605501f69b89d2d6b16c2f3b67746537389f74e895dd0e50584fe379f497490a648f566c28ff83ec22388c80a"
}