Thanks for the quick response. Here are the version details:
Apache/2.2.16 mod_wsgi/3.3 Python/2.6.6 So do we need to change anywhere or only upgrade mod_wsgi/3.3 will solve this problem. BTW what version i have to install? Thanks, On Tue, Jul 5, 2011 at 11:03 PM, Graham Dumpleton < [email protected]> wrote: > You would only be seeing this if you refresh a page before the > response from a prior request had been completely written back by the > web application. > > What the error is saying is that while writing back a response, the > socket connection from the client browser was severed prematurely > before the client had read all the response. This would occur where > you pressed refresh in a browser before waiting for original page to > be completely returned and drawn in the browser. > > So, it should be an isolated action due to conscious action on the > part of the user. You should not be seeing this on ever request. > > That you are even seeing this suggests you are perhaps using an older > version of mod_wsgi as the message is suppressed in most cases with > mod_wsgi 3.X. > > The original issue about the messages that can be generated when > browser closes connection early can be seen at: > > http://code.google.com/p/modwsgi/issues/detail?id=29&can=1 > > What version of mod_wsgi are you using? > > Graham > > On 6 July 2011 03:15, pankaj <[email protected]> wrote: > > Hi, > > > > Whenever i refresh the web page then i got below error in Apache error > > log file. I have googled about this issue, but did not find the proper > > solution for this issue. > > > > mod_wsgi (pid=9655): Exception occurred processing WSGI script '/x/y/z/ > > web/apps.wsgi'. > > IOError: failed to write data > > > > my apps.wsgi script looks like this: > > > > import os, sys > > # figure out where on disk this gnatatui install is hiding > > base_path = __file__.split('/web/apps.wsgi')[0] > > > > # and add it to sys.path > > for path in ('/op/ww/dj/django-trunk', base_path): > > if path not in sys.path: > > sys.path.append(path) > > > > os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings' > > > > import django.core.handlers.wsgi > > > > _application = django.core.handlers.wsgi.WSGIHandler() > > > > def application(environ, start_response): > > > > base_url = environ['SCRIPT_NAME'][1:] # drop leading slash > > if base_url != 'web': > > from django.conf import settings > > settings.BASE_URL = base_url > > > > # Adjust PATH_INFO to get around a Djago bug. See: > > # http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango > > environ['PATH_INFO'] = environ['SCRIPT_NAME'] + > > environ['PATH_INFO'] > > return _application(environ, start_response) > > > > > > Please let me know if you need any more info. > > > > Any help will be highly appreciate. > > > > Thanks. > > > > -- > > You received this message because you are subscribed to the Google Groups > "modwsgi" 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/modwsgi?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" 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/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en.
