in reply to NTLM2 authentication fails for large payload
If I were in your shoes, I would look harder at the web service for the source of the error. The web service is the one timing out, not the perl script.
On another note, is it possible the Windows token timed out before the last large upload?
In Section
Seekers of Perl Wisdom