You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
In some cases slow external assets can basically lock up WeasyPrint, because currently no timeout is given to Requests. Maybe a default value of 30 seconds is reasonable, though making it user configurable would be better.
The text was updated successfully, but these errors were encountered:
WeasyPrint uses urllib2 / urllib.request, not Requests. The urlopen function has had an optional timeout parameter since Python 2.6, so it shouldn’t be hard to use that. What should this look like in WeasyPrint’s Python API? Something like this?