New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSLError when sending several files #5

Closed
michelts opened this Issue Jan 10, 2011 · 4 comments

Comments

Projects
None yet
2 participants
@michelts
Copy link
Contributor

michelts commented Jan 10, 2011

Hi Rich,

We talked about this error on the django-storages bitbucket... I migrated my app to django-cumulus and I still have the exception being rise after some time.

I don't think it is a timeout problem because it happens on a unpredictable intervals. To be honest with you, on Friday, when I migrate about 1,000 files to a cloudfiles container, i got this error several times. Today I'm trying to reproduce the error and it happens only once, much less than on Friday.

To fix it, I'm deleting the connection and the container attributes from the storage instance, it forces the storage to make a new connection.

What do you think about make it happens by default inside CloudFilesStorage?

@richleland

This comment has been minimized.

Copy link
Contributor

richleland commented Jan 11, 2011

Hi Michel - it's not just you - I'm getting reports of this from other users and I've experienced it just running my tests. I'm investigating... stay tuned...

@michelts

This comment has been minimized.

Copy link
Contributor Author

michelts commented Jan 14, 2011

Hi Richard,

I talked with rackspace and they said it is a timeout problem.

The default value for timeout is 5 and they suggested me to set it to 15. I think it is 15 seconds of timeout for each request but it is not clear to me, I asked rackspace to clarify and, since they reply me, I will document it on a python-cloudfiles docstring.

I did a small script that uses only the python-cloudfiles lib (without cumulus) and I could reproduce the error generally before 14 or 15 requests. After I updated the timeout on the connection constructor, I couldn't reproduce the error again. I stopped manually on 50 requests.

It is possible to the set timeout on the connection_kwargs on the CloudFilesStorage constructor, anyway, I think we should have a way to set the timeout on the django settings file.

How about it?

@richleland

This comment has been minimized.

Copy link
Contributor

richleland commented Jan 19, 2011

Added CUMULUS_TIMEOUT setting. Closed by cac5cc2.

@michelts

This comment has been minimized.

Copy link
Contributor Author

michelts commented Jan 19, 2011

Cool! Thanks for that Richard!

michelts pushed a commit to michelts/django-cumulus that referenced this issue May 12, 2011

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment