error: (32, 'Broken pipe')

4 views
Skip to first unread message

Emanuele

unread,
Oct 24, 2005, 8:47:56 AM10/24/05
to Django users
Hi,
sometimes in my logs ("django-admin.py runserver ..." logs, to be
precise) I got the following error message without any apparent reason.
It doesn't give any real problem to users but I'm not able to
understand what causes it.
------------------------------------------------------
...
[24/Oct/2005 10:09:44] "GET /admin/koan/materiali/add/ HTTP/1.1" 200
3954
Traceback (most recent call last):
File
"/usr/local/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 273,
in run
self.finish_response()
File
"/usr/local/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 312,
in finish_response
self.write(data)
File
"/usr/local/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 391,
in write
self.send_headers()
File
"/usr/local/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 443,
in send_headers
self.send_preamble()
File
"/usr/local/lib/python2.3/site-packages/django/core/servers/basehttp.py",
line 376,
in send_preamble
self._write('Server: %s\r\n' % self.server_software)
File "/usr/lib/python2.3/socket.py", line 254, in write
self.flush()
File "/usr/lib/python2.3/socket.py", line 241, in flush
self._sock.sendall(buffer)
error: (32, 'Broken pipe')
[24/Oct/2005 10:10:42] "POST /admin/koan/materiali/add/ HTTP/1.1" 302 0
...
------------------------------------------------------

Do you have hints?

Thanks in advance,

Emanuele

Jeremy Dunck

unread,
Oct 24, 2005, 8:51:10 AM10/24/05
to django...@googlegroups.com
On 10/24/05, Emanuele <emanuele...@gmail.com> wrote:
>
> Hi,
> sometimes in my logs ("django-admin.py runserver ..." logs, to be
> precise) I got the following error message without any apparent reason.
> It doesn't give any real problem to users but I'm not able to
> understand what causes it.

I'm just guessing, but I bet it's caused by users navigating away from
a page before you finish sending it; the client closed the socket, so
the pipe is broken.

If I'm right, you should be able to repro it on a slow-responding page.

Emanuele

unread,
Oct 24, 2005, 12:05:10 PM10/24/05
to Django users
Yes! It's absolutely correct and I'm able to reproduce it as you
guessed. If I click on a page while it's sent from server I got exactly
that error message.

Thank you for the answer.

Emanuele

Reply all
Reply to author
Forward
0 new messages