While writing a little patch to get rid of the (annoyingly loud) 'broken
pipe' exception/traceback; i found that there actually a ticket for it
#4444 which is marked won't fix.
I would like to throw in two options for making this error a little less
noisy. (As this error is 'common browser error' which browsers closing
the connection while the dev server is still sending data) Replacing it
with something more explicit as suggested by PhiR before setting the
ticket wontfix.
With the patches i've uploaded on #4444 the '43, broken pipe' now looks
like this:
[31/May/2008 20:47:21] "GET /favicon.ico HTTP/1.1" 200 6335 Broken pipe
My $0.02 cents...
Ido
While writing a little patch to get rid of the (annoyingly loud) 'broken
pipe' exception/traceback; i found that there actually a ticket for it
#4444 which is marked won't fix.
It's probably better called something like a style issue.
But some people see this as an problem, cause you get a loud (perhaps
for some scarry) looking exception. For something which is essentially a
non-problem.
I'm all for not fixing every little quirck browsers throw at us, but
this could be a very very simple patch which will stop the console being
littered with useless exceptions when using runserver.
It just feels wrong IMHO to have exceptions raised for users where the
reaction too questions about it will be: 'just ignore it completely,
it's a browser issue'.
- Ido
> I'm +1 on this. An exception should only appear on the console if
> something serious is broken.
The term you're looking for is "error", not exception. An exception
can be expected.
Where would you fellows suggest we catch this exception, and do
nothing? Because that's half of the problem: there's no suitable place
for it. From the HTTP-to&from-WSGI layer seen, a broken pipe is
serious business. From the view's view (tee-hee), it won't ever
matter. From the users' view, it all depends.
I'd also like to duly note that these broken pipes can be errors - a
misbehaving browser, perchance. Or maybe even Python's socketing gone
wrong!
I'd rather see this be leaved as-is, since I haven't seen a single
report on these broken pipe 'issues'.
Ludvig "toxik" Ericson
ludvig....@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkhDQpMACgkQXnZ94Kd6KafmLQCggNZcpjucwTL/vHztq44AqgDa
SqkAn2+S17lvVQ4NxLqienrNtQKNh8sw
=k3vX
-----END PGP SIGNATURE-----
I'd rather see this be leaved as-is, since I haven't seen a singlereport on these broken pipe 'issues'.