diaspora / diaspora_federation

A library that provides functionalities needed for the diaspora* federation protocol.
GNU Affero General Public License v3.0
101 stars 29 forks source link

Don't fetch the same entity twice in the same thread #87

Closed SuperTux88 closed 7 years ago

SuperTux88 commented 7 years ago

Normally this shouldn't happen, but it could be used as an attack vector when somebody creates this scenario manually and links to it, so pods start fetching the loop.

When two threads fetch the same entity (which can happen when receiving the same entity twice), this isn't a problem, because the receive method can handle duplicates anyway.

cmrd-senya commented 7 years ago

Merged, thanks!