[Twisted-Python] xmlrpc protocoll instanze per connection?

Itamar Turner-Trauring itamar at itamarst.org
Wed Aug 4 08:13:32 EDT 2010


On Wed, 2010-08-04 at 12:00 +0200, Pet wrote:

> Now, for XMLRPC this looks for me like Protocol instance is reused for
> all connection. If it is so, can I change this behavior, so I have one
> instance of Protocol per connection?

XMLRPC is a Resource, not a Protocol: Resources handle HTTP *requests*.
The reason Resources don't care about connections is that HTTP doesn't
care about connections: you can send multiple requests over the same
connection, or one request per connection, and the semantics are the
same either way.




More information about the Twisted-Python mailing list