On Tue, Dec 20, 2011 at 1:56 PM, Paul McMillan <p...@mcmillan.ws> wrote:

> > Place a try/catch for MemoryError on the exception handler to send back a
> > simple exception traceback to the browser.
>
> Yes, this makes sense, as long as we are sure the memory error is
> raised by Django code, not user code.
>
> > Include a configuration settings option to limit the maximum payload it
> will
> > send back to the browser per variable (i.e. maybe 500kb per stack frame,
> or
> > 2kb per variable etc)
>
> I think we should select some reasonable limits for these, and
> hardcode them, rather than adding a setting. Users who are debugging
> the entire contents of multi-megabyte variable values on the html
> debug page are doing it wrong.
>
> -Paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-developers@googlegroups.com.
> To unsubscribe from this group, send email to
> django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
>
>
Once you get a real memory error (i.e. one indicating you're out of memory,
not just some operation wouldn't work "aaaa" * sys.maxint for example),
doing *any* allocation might fail, so any limits you try to put down won't
work in all circumstances.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to