[Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Rob Meijer
Hi everyone, I'm working on what is just my second project using Twisted-Web, so I'm still a relative newbee on the subject. I'm working on a project that uses Twisted Web as a simple authorization proxy. All requests to my proxy contain an authorization-token and are either handled by the proxy,

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Phil Mayers
On 07/09/2013 09:04 AM, Rob Meijer wrote: Hi everyone, I'm working on what is just my second project using Twisted-Web, so I'm still a relative newbee on the subject. I'm working on a project that uses Twisted Web as a simple authorization proxy. All requests to my proxy contain an authorizatio

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Tristan Seligmann
On Tue, Jul 9, 2013 at 10:41 AM, Phil Mayers wrote: > This is sort of a problem with HTTP. The client will probably keep sending > the data. > Yes, the only way you can interrupt the client while it is sending a request is to close the connection, which means that the client will not read any err

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Itamar Turner-Trauring
On 07/09/2013 04:04 AM, Rob Meijer wrote: 3) When the token does not check out, or the connection to the server fails, it remains a mystery to me how I should throw an error in such a way that it allows me to send a proper error message to the client, while not having to first accept the whole la

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Itamar Turner-Trauring
On 07/09/2013 07:30 AM, Itamar Turner-Trauring wrote: HTTP clients can send a "Expects: 100-continue" header (or something like that), which tells the server it should give an early rejection or acceptance before the client sends the data, in *addition* to the final response. You would still ne

Re: [Twisted-Python] AMQP listening and user-facing daemon

2013-07-09 Thread David Serafini
Date: Mon, 08 Jul 2013 13:31:49 -0700 From: Justin Chiu Hi all, *I posted this to python-list and tutor-list and received no replies. Any advice would be much appreciated. Thank you.* What is the best approach to writing a concurrent daemon that can execute callbacks for different types of eve

Re: [Twisted-Python] AMQP listening and user-facing daemon

2013-07-09 Thread Kevin Horn
See also Pika: https://github.com/pika/pika/ On Tue, Jul 9, 2013 at 1:13 PM, David Serafini wrote: > Date: Mon, 08 Jul 2013 13:31:49 -0700 >> From: Justin Chiu >> >> >> Hi all, >> >> *I posted this to python-list and tutor-list and received no replies. >> Any advice would be much appreciated. T