But did you add the print statements to verify code run and did you try it from the browser?
When I try http://wsgi.barskdata.net/app1 from the browser I find that some times the page works and other times it does and instead the browser says the web server drops the connection. This might occur for a number of reasons, including the Apache processes crashing. So, look carefully at main Apache error log file to see it there are segmentation fault messages or other bad error messages. BTW, would recommend you use daemon mode and not embedded mode of mod_wsgi. See: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#Delegation_To_Daemon_Process Also see whether PHP being used in same web server as there could be a conflict there. Graham On 14 September 2011 08:00, gardsted <[email protected]> wrote: > Fanx, Graham. > I have tried - see below - it helped a little. > > Concurrency Level: 1 > Time taken for tests: 102.794 seconds > Complete requests: 1000 > Failed requests: 242 > (Connect: 0, Receive: 0, Length: 242, Exceptions: 0) > > > But the application I run is the same - so it shouldnt give any > errors. > > def application(environ, start_response): > status = '200 OK' > output = 'Hello World!' > > response_headers = [('Content-type', 'text/plain'), > ('Content-Length', str(len(output)))] > start_response(status, response_headers) > > return [output] > > > Running with concurrency level 10 for a static page from same server > gives no errors. > > jayjay > > -- > 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.
