Cheers.
Tai.
Based on my experience with this error (which, sadly, is extensive)
it's almost certainly client-side. When there are server-side
disconnects it's not intermittent: every server-side disconnect issue
I've seen has been reproducible and thus fixable.
But there's a whole bunch of client-side issues that could be causing
this, and you probably can't do anything about it. Some examples of
where the problem can be:
* Browser: you can get this when a user just clicks the "stop" button
or navigates away. Some browsers close the connection cleanly; others
don't.
* Browser: some versions of IE, especially on Vista, randomly
terminate uploads. Most of the time it's seemed to be related to the
windows firewall thing.
* Browser: various development versions of Firefox, Chrome, and Safari
have all had upload/disconnect issues. To my knowledge none of these
issues have made it into shipping versions, but many users of these
browsers use the cutting edge.
* Dodgy 'net connections, especially public ones. For example, I can
pretty consistently trigger an IOError by uploading a file from Kansas
City International Airport.
* Badly-configured intermediary caches, like those run by ISPs. AOL
dialup users (yes, there are still some of these!) seem to throw lots
of IOErrors. (I traced this town by noting that certain /24 and /32 IP
spaces seemed more prevalent in the error tracebacks and tracked down
those block owners.)
So yeah, all of those are out of your control, which is why I (and
many others) usually just say to ignore the error.
However, I think it's a bad idea to automatically suppress these
errors (which you could do with a piece of middleware or a custom log
handler in 1.3). That's because this error could *also* be caused by
something misconfigured on your end (a messed up HTTP load balancer,
for example). So if you just suppress the error you could end up
missing something that *is* fixable.
So we're back to "read and then ignore," sadly. I would *love* a
better way, but I can't think of one.
Jacob
> --
> You received this message because you are subscribed to the Google Groups "Django developers" group.
> To post to this group, send email to django-d...@googlegroups.com.
> To unsubscribe from this group, send email to django-develop...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
>
>
User double-clicks on submit button, second click killing the connection
created by the first press and starting another one?
Cheers,
Nick
--
Nick Phillips / +64 3 479 4195 / nick.p...@otago.ac.nz
# these statements are my own, not those of the University of Otago
https only
On Feb 14, 7:06 pm, Graham Dumpleton <graham.d...@gmail.com>
wrote:
> Presuming Apace/mod_wsgi is being used, are you using https or just http? Are you using daemon mode of mod_wsgi? If yes to latter, how have you configured daemon mode? Also what Apache MPM are you using and what MPM configuration settings? Finally, what Apache and mod_wsgi versions are you using?
>
> Graham
>
> On Tuesday, February 15, 2011 6:50:12 AM UTC+8, Drew Volpe wrote:
On Feb 14, 7:06 pm, Graham Dumpleton <graha...@gmail.com>
wrote:
> Presuming Apace/mod_wsgi is being used, are you using https or just http? Are you using daemon mode of mod_wsgi? If yes to latter, how have you configured daemon mode? Also what Apache MPM are you using and what MPM configuration settings? Finally, what Apache and mod_wsgi versions are you using?
>
> Graham
>
> On Tuesday, February 15, 2011 6:50:12 AM UTC+8, Drew Volpe wrote: