workaround a connreset bug in api
Merge pull request #18 from dougwig/master

workaround a connreset bug in api