sookasa / box.py

Python client for Box
43 stars 25 forks source link

Add a little HTTP request resilience #34

Open k8n opened 10 years ago

k8n commented 10 years ago

At times (more often than I would like) box.com API services experience connectivity issues. (And at times a pesky OS X 10.9 network stack bug gets in the way.) The occasional symptoms are hung sockets and SSL EOL/EOF errors.

I worked-in a requests session HTTP adapter that puts timeout values of requests and retries requests that fail.

With some massaging, could this mechanism be part of box.py?

tals commented 10 years ago

While I don't actually use Box or even use this library, I am somehow not surprised by what you're describing :)

I'm not sure about the adapter you wrote though. I'll look at it sometime.