#4444: broken pipe issue
------------------------------+---------------------------------------------
   Reporter:  vanderkerkoff   |                Owner:  adrian        
     Status:  reopened        |            Component:  Core framework
    Version:  SVN             |           Resolution:                
   Keywords:  broken pipe 32  |                Stage:  Unreviewed    
  Has_patch:  0               |           Needs_docs:  0             
Needs_tests:  0               |   Needs_better_patch:  0             
------------------------------+---------------------------------------------
Comment (by eatmywake AT gmail DOT com):

 Hi,[[BR]]
 I was getting this error too (with Mozilla Firefox v2.0.0.5 and Mozilla
 Seamonkey v1.1.3 on Fedora7 served by Django v0.96, dev server), however
 what I found interesting was that I was able to replicate & eliminate (or
 decrease the frequency of the error, at least) in my app! I'll explain a
 little what I was up to. [[BR]]
 [[BR]]
 I'm building a chat room app with Django and its AJAXed using YUI toolkit.
 Part of the app is a continuous loop, which polls the server for updates.
 This is simplifing things a bit, but the app has, lets say, a poll
 interval and a timeout period setting, so that if a request doesn't return
 from the server within the timeout period, the request is aborted. [[BR]]
 [[BR]]
 What I found (and it kinda makes sense, with hindsight...) was that by
 making the timeout period much less than the poll interval, say half, the
 frequency of the error was much reduced. At the moment I'm not getting any
 errors. I think I may have been DoS-ing my own machine by sending too many
 requests, before the previous requests had completed!!
 [[BR]] I don't know if this will help the ticket resolution, but the same
 error had me head scratching for a while.[[BR]]
 Tom (Mayo, Ireland.)[[BR]]
 [[BR]]
 Below is the exact error copied from my terminal;[[BR]]
 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py",
 line 273, in run
     self.finish_response()
   File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py",
 line 312, in finish_response
     self.write(data)
   File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py",
 line 391, in write
     self.send_headers()
   File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py",
 line 443, in send_headers
     self.send_preamble()
   File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py",
 line 373, in send_preamble
     'Date: %s\r\n' % time.asctime(time.gmtime(time.time()))
   File "/usr/lib/python2.5/socket.py", line 261, in write
     self.flush()
   File "/usr/lib/python2.5/socket.py", line 248, in flush
     self._sock.sendall(buffer)
 error: (32, 'Broken pipe')
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4444#comment:11>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to