Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heinous bug with ... Cheroot? #140

Closed
chadwhitacre opened this issue Jan 16, 2013 · 6 comments
Closed

heinous bug with ... Cheroot? #140

chadwhitacre opened this issue Jan 16, 2013 · 6 comments

Comments

@chadwhitacre
Copy link
Contributor

I upgraded DataDirect to Aspen 0.22.4 today, and now I'm getting weird behavior from it. If I load it in the browser it's fine, but if I hit it from Python (requests or urllib2) or with curl, the connection drops.

If I mount the app using gunicorn I don't see the problem.

My hypothesis at this point is that it's an interaction between Cheroot and whatever I'm doing with 401 redirecting (302) to a login app.

@chadwhitacre
Copy link
Contributor Author

I can trigger this in the browser as well by short-circuiting aspen.website.Website:handle to return an empty Response of arbitrary status code (I tested 200 and 410).

So is the problem with Cheroot or with Aspen?

@chadwhitacre
Copy link
Contributor Author

Okay, I've got my answer for tonight: CherryPy 3.2.2 works. I'm going to install that and use it. Cheroot is simply used as the default.

@chadwhitacre
Copy link
Contributor Author

@aminusfu might be interested in this. Once we get a test case we should file a ticket over on bitbucket.

@chadwhitacre
Copy link
Contributor Author

From an instance of very similar behavior at YouGov, it seems that the problem may be in httplib's implementation of chunked encoding relative to CherryPy/Cheroot's.

@pjz
Copy link
Contributor

pjz commented Jan 24, 2013

Did you get enough details on this to file a bug with CherryPy/Cheroot or httplib?

@pjz
Copy link
Contributor

pjz commented Sep 21, 2013

Superseded by #202

@pjz pjz closed this as completed Sep 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants