As per title if there are two o more concurrent request the all fail with
Error: Cannot add duplicate torrent
a piece of stack is
node_modules/webtorrent/index.js:265 torrent._destroy(new Error(Cannot add duplicate torrent ${torrent.infoHash}))
This is actually expected, webtorrent raise an error, the other request after the first occur before webtorrent .remove occur. But if this is the case, serve could reply to the other requests (until webtorrent .removedoes not occur)
The server should handle the first and subsequent requests. I have a fix if you are interested :)
As per title if there are two o more concurrent request the all fail with
Error: Cannot add duplicate torrenta piece of stack is
node_modules/webtorrent/index.js:265 torrent._destroy(new Error(Cannot add duplicate torrent ${torrent.infoHash}))This is actually expected,
webtorrentraise an error, the other request after the first occur beforewebtorrent .removeoccur. But if this is the case, serve could reply to the other requests (untilwebtorrent .removedoes not occur)The server should handle the first and subsequent requests. I have a fix if you are interested :)