Hi Everyone,
I am currently having a problem, where if two requests come into my
server at almost the same time, I end up with a 500 server error. I
am using "paster serve" and "egg:Paste#http" on Pylons 0.9.6 and Paste
1.4.2. The traceback I get ends with:
Module paste.httpserver:166 in wsgi_start_response
>> assert 0, "Attempt to set headers a second time w/o an exc_info"
self.wsgi_curr_headers = (status, response_headers)
return self.wsgi_write_chunk>> assert 0, "Attempt to set
headers a second time w/o an exc_info"
exceptions.AssertionError: Attempt to set headers a second time w/o an
exc_info
I've done a ton of "print" statement debugging in Paste and Pylons,
and what appears to be happening (although it seems impossible) is
that the same code path is being run twice, with all the same
variables and closures, etc.
I found a thread on the PyDAP group that describes exactly the same
problem I am having (they use Paste too). This is the thread:
http://groups.google.com/group/pydap/browse_thread/thread/d1a04b9e3dbf6dcc
I've already e-mailed Rob De Almeida asking him what the solution he
found was.
But I was wondering if any of you Pyloneers have encountered this
before?
As far as I can tell, I've been having this problem for a very, very
long time, through a couple different versions of Pylons, but this is
the first I've gotten around to debugging it. There were always a few
unexplainable 500 errors, but now I've got an AJAX page that will fail
very reliably because of the timing of its requests.
Any help would be appreciated!
Thank you,
David Snopek.
--
Open Source Hacker and Language Learner
http://www.hackyourlife.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---