Forum Discussion
L4L7_53191
Aug 25, 2011Nimbostratus
IIRC there's no keep-alive - each socket is independent of the next, which is consistent with RPC style calls. But note that you don't need to create another object inside the loop. Since each socket is independent, a new one will be used on subsequent calls.
Now all that said, the transport for Suds is based on urllib2 and you can override this and build in keep-alives if you're really interested in doing so. In pycontrol2 all of the suds client specifics are exposed and you can call set_options() against it for various (read: all) of the suds client options. Have a look at the suds attribute (b.LocalLB.Foo.suds) to see what I mean.
Here's a post that implements a custom transport class that will allow you to do this. Personally, I've not come across a real need though...
http://lists.fedoraproject.org/pipermail/suds/2010-May/000908.html
--Matt