Does the Plex API throttle/drop requests automatically?

Hey,

I’m developing the Sub-Zero.bundle subtitles agent.

With the newest update came an automatic background task, which triggers metadata refreshes for items with missing subtitles, using the Plex API.

Some users with big libraries report that after some hundred refreshed items the Plex server doesn’t handle the "PUT /library/metadata/xxxxxxx/refresh HTTP/1.1" 200 198-requests anymore, thus stalling the background task.

Is there any built in throttling in the Plex API?

Anyone? Perhaps someone official?

I am experiencing issues with the background tasks, I have the following error occurring on the refresh of media items appearing in the logs:

2016-01-02 22:21:03,809 (24a4) :  DEBUG (logkit:13) - Task: searchAllRecentlyAddedMissing, item stalled for 30 seconds: 3250, retrying
2016-01-02 22:21:33,855 (24a4) :  DEBUG (logkit:13) - Task: searchAllRecentlyAddedMissing, item stalled for 30 seconds: 3250, retrying
2016-01-02 22:22:03,885 (24a4) :  DEBUG (logkit:13) - Task: searchAllRecentlyAddedMissing, item stalled for 30 seconds: 3250, retrying
2016-01-02 22:22:33,963 (24a4) :  DEBUG (logkit:13) - Task: searchAllRecentlyAddedMissing, item stalled for 4 times: 3250, skipping

This happens on every media item.

I first thought it could be my Squid proxy, (which I have since disabled) but the problem remains. I can connect to Plex services no problem.