Ticket #292 (new defect)

Opened 3 years ago

Paste#http doesn't handle POST bodies well

Reported by: chrisw Owned by: ianb
Priority: normal Milestone:
Component: paste Version: released-version
Severity: normal Keywords:
Cc:

Description

See this post:

 http://mail.zope.org/pipermail/zope3-users/2008-August/008122.html

I'm using "paster serve deploy.ini" and here's my deploy.ini:

[app:main] use = egg:HelloWorld

[server:main] use = egg:Paste#http host = 127.0.0.1 port = 8080

Now, bodyStream ends up being a paste.httpserver.LimitedLengthFile? and the hang on the server side occurs in the following line:

data = self.file.read(length)

On the client side, the hang occurs in the following line:

print c.getresponse().read()

If I change my deploy.ini to:

[app:main] use = egg:HelloWorld

[server:main] use = egg:zope.server#main host = 127.0.0.1 port = 8080

...everything works fine leading me to believe the problem is in paste.httpserver.

This was all with Paste 1.7.1.

Note: See TracTickets for help on using tickets.