It contains hardcoded values that could result in the library not working as intended, or unintentional DoS attacks against innocent third parties if it were implemented in a widely distributed piece of software.
It contains hardcoded values that could result in the library not working as intended, or unintentional DoS attacks against innocent third parties if it were implemented in a widely distributed piece of software.
Just attempt to perform the operation you want, and if it fails, give the feedback to the user that it failed. Why does it have to be more complicated than that ? (It is not a rhetorical question)
But I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)
About DoS attack, I think you need to review how those work, the library is not implementing amplification or something similar.
If you don't understand what I mean - just pull the project and do some more research before you release something like this.
You can relax, I know how they work. My final year project was about DoS. I would send you the link but it's Spanish.
But I can say you I've written a tool to implement this vector (among others) against VoIP services and it was presented even at the BlackHat conference.
EDIT: it looks like I'm getting downvoted for this opinion - could any of the downvoters also reply as to why it's a bad idea?
That is pretty much what happend with this dubious WordPress plugin developers that changed their "license check" or keep-alive check or whatever to do some hundred thousand (or so) "checks" to their competitors website per hour.
You are being downvoted because the author pointed at random services not under his control. So if a mobile app with million of users deployed this, an innocent third party that has nothing to do with the author would be hit with millions of requests they didn't ask for.