SaltwaterC/aws2js — pull request #26 by dcleal (2012-03-21 18:07:44+00:00)
Title: Add http options client creation

Hi,

here's a couple of changes to aws2js. One is to allow me to pass html options into the client load routine. The motivation for me was so that I can say "agent : false" to avoid problems with http connection pooling.

The other is a small change to the handling of dropped connections. We seem to see a number of these when doing SQS ReceiveMessage, and in every case, we've actually already got a whole message from Amazon which we'd like to process. This seems a fairly safe change: if we haven't got a whole message the XML parse won't work out so we're unlikely to do anything bad.