The code
mapConcurrently httpLBS requests
throws
ConnectionFailure Network.BSD.getProtocolByName: does not exist (no such protocol name: tcp))
after about 1k requests.
The code
mapConcurrently httpLBS requests
throws
ConnectionFailure Network.BSD.getProtocolByName: does not exist (no such protocol name: tcp))
after about 1k requests.
Copyright © 2021 Jogjafile Inc.
The requests are all run in parallel and make the process run out of file descriptors. Use
(adjust imports if you don't use
ClassyPrelude)Make sure your equivalent of
httpLBSconsumes the request if you use a streaming alternative. And that yourbis strict in all fields.