I am using the API for automatically making updates to the Hebrew Wikisource site (using perl with LWP::UserAgent). In the last two weeks, I keep getting random errors with the status "read failed: Connection reset by peer".
The errors appear in various steps of the process: sometimes they appear on the first login phase, sometimes this phase succeeds but the second login phase fails, sometimes I get this error while trying to fetch a csrf token from this url: "http://he.wikisource.org/w/api.php?action=query&meta=tokens&continue=&format=xml", etc.